Date: Fri, 18 May 2018 15:41:56 +0000 (UTC) From: Adam Weinberger <adamw@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r470301 - head/devel/kBuild Message-ID: <201805181541.w4IFfuE0035400@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adamw Date: Fri May 18 15:41:55 2018 New Revision: 470301 URL: https://svnweb.freebsd.org/changeset/ports/470301 Log: devel/kBuild: Add a GCC option When you're building only virtualbox-ose-additions, and without any X-related stuff, it is sufficient to build with clang instead of GCC. Add a GCC option (with a warning and pkg-help saying to leave it enabled) to make GCC optional. PR: 215369 Approved by: maintainer timeout (17 months) Added: head/devel/kBuild/pkg-help (contents, props changed) Modified: head/devel/kBuild/Makefile Modified: head/devel/kBuild/Makefile ============================================================================== --- head/devel/kBuild/Makefile Fri May 18 15:39:43 2018 (r470300) +++ head/devel/kBuild/Makefile Fri May 18 15:41:55 2018 (r470301) @@ -18,7 +18,6 @@ BROKEN_powerpc64= does not build: fatal error: xmmintr NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64 NOT_FOR_ARCHS_REASON= ./kBuild/env.sh: unknown cpu/arch -USE_GCC= any USES= autoreconf:build gmake makeinfo tar:xz CONFLICTS_INSTALL= kBuild-devel-[0-9]* @@ -43,7 +42,10 @@ PORTDOCS= QuickReference-kmk.html \ ENV= .export ENV -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS GCC +OPTIONS_DEFAULT=GCC +GCC_DESC= Build with GCC (should almost always be enabled) +GCC_USE= GCC=any post-patch: for f in ${WRKSRC}/kBuild/tools/*.kmk; do \ Added: head/devel/kBuild/pkg-help ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/kBuild/pkg-help Fri May 18 15:41:55 2018 (r470301) @@ -0,0 +1,3 @@ +The only time that the GCC option can be disabled (to build with clang +instead) is if you're building ONLY emulators/virtualbox-ose-additions, +without X11, and only on amd64/i386.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805181541.w4IFfuE0035400>