Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2013 23:15:18 +0000 (UTC)
From:      Mikhail Teterin <mi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r317845 - head/devel/boost-all
Message-ID:  <201305102315.r4ANFI3H098235@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305102315.r4ANFI3H098235>