tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
defaulting to clang on FreeBSD 10.x
Hi,
This is pretty easy to reproduce. However you've bootstrapped pkgsrc on
FreeBSD 10.x, whether with a mk-fragment or not, you can comment the
PKGSRC_COMPILER, CC, CXX, CPP, and CLANGBASE variables in mk.conf and pkgsrc
will want to build gcc-3 on that system to build any other packages.
Attached is a patch which fixes this behaviour for FreeBSD >= 10. OK to commit
during the freeze?
Best regards,
rodent@
--- FreeBSD.mk.orig 2013-04-28 08:53:56.000000000 -0400
+++ FreeBSD.mk 2015-03-22 09:15:42.097219618 -0400
@@ -12,6 +12,14 @@
SU?= /usr/bin/su
TYPE?= type # Shell builtin
+.if ${OS_VERSION} >= 10
+PKGSRC_COMPILER?= clang
+CC?= clang
+CXX?= clang++
+CPP?= ${CC} -E
+CLANGBASE?= /usr
+.endif
+
CPP_PRECOMP_FLAGS?= # unset
DEF_UMASK?= 0022
.if ${OBJECT_FMT} == "ELF"
Home |
Main Index |
Thread Index |
Old Index