svn commit: r317845 - head/devel/boost-all
Mikhail Teterin
mi at FreeBSD.org
Fri May 10 23:15:18 UTC 2013
Author: mi
Date: Fri May 10 23:15:18 2013
New Revision: 317845
URL: http://svnweb.freebsd.org/changeset/ports/317845
Log:
Respect the locally set CXXFLAGS (and CFLAGS) -- except for optimization
level (-O*), which Boost sets to -O3 automatically.
Approved by: maintainer (bapt)
Modified:
head/devel/boost-all/compiled.mk
Modified: head/devel/boost-all/compiled.mk
==============================================================================
--- head/devel/boost-all/compiled.mk Fri May 10 22:32:22 2013 (r317844)
+++ head/devel/boost-all/compiled.mk Fri May 10 23:15:18 2013 (r317845)
@@ -16,6 +16,11 @@ BJAM_ARGS= --layout=system \
BJAM_ARGS+= cxxflags=-fPIC
.endif
+# Our compiler-flags will be added AFTER those set by bjam. We remove
+# the optimization level, because Boost sets it itself (to -O3 in case
+# of gcc/g++):
+BJAM_ARGS+= cxxflags="${CXXFLAGS:N-O*}" cflags="${CFLAGS:N-O*}"
+
NO_CCACHE= yes
.if ${CC:T:Mgcc*}
BOOST_TOOLSET:= gcc
More information about the svn-ports-head
mailing list