Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2013 18:25:35 -0400
From:      "Mikhail T." <mi+thun@aldan.algebra.com>
To:        Baptiste Daroussin <bapt@FreeBSD.org>, office@freebsd.org
Subject:   Re: boost-libs and CXXFLAGS (Re: devel/boost-bjam)
Message-ID:  <518D73DF.6070302@aldan.algebra.com>
In-Reply-To: <518D5850.4020802@aldan.algebra.com>
References:  <517ABC7F.6040807@aldan.algebra.com> <518066A5.6090601@aldan.algebra.com> <20130501181311.GW3577@ithaqua.etoilebsd.net> <5181885A.1030501@aldan.algebra.com> <20130502210136.GG79495@ithaqua.etoilebsd.net> <5182D5C9.4000004@aldan.algebra.com> <20130502215048.GI79495@ithaqua.etoilebsd.net> <5182E531.8050109@aldan.algebra.com> <20130502222115.GL79495@ithaqua.etoilebsd.net> <518D5850.4020802@aldan.algebra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10.05.2013 16:28, Mikhail T. wrote:
> Though boost-libs are now built with the specified compiler, the compiler 
> flags continue to be ignored.
I think, it is as simple as this:

    Index: compiled.mk
    ===================================================================
    --- compiled.mk (revision 317825)
    +++ compiled.mk (working copy)
    @@ -12,9 +12,7 @@
      BJAM_ARGS=     --layout=system \
                     --prefix=${PREFIX}

    -.if ${ARCH} == amd64
    -BJAM_ARGS+=    cxxflags=-fPIC
    -.endif
    +BJAM_ARGS+= cxxflags="${CXXFLAGS:N-O*}" cflags="${CFLAGS:N-O*}"

      NO_CCACHE=     yes
      .if ${CC:T:Mgcc*}

I make sure to remove any -O* flags from the local settings, because boost 
prefers to be compiled with -O3 and inserts that in place automatically -- there 
is no good reason to overwrite that.

Also, it seems, the upstream wised up on the -fPIC flag -- it is now added, 
where needed. Adding it, where /not/ needed (in static libraries and 
executables), as the current compiled.mk is doing on amd64, only pessimises the 
generated code a little bit.

    -mi




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