Boost logo

Boost-Build :

Subject: Re: [Boost-build] Suppress "weak external" exports from Mac OS X executables?
From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2008-11-25 08:24:22


Hi Allen !

An'n Dienstag 25 November 2008 hett Allen Cronce schreven:

> I suspect that the problem is I'm just not passing the cflags or
> cxxflags correctly.

Most probably.

> Either that, or this isn't really a symbol
> visibility issue.
>
> In any case, here's the command line I tried:
>
> ./tools/jam/src/bin.macosxx86/bjam debug release toolset=darwin
> address-model=32 architecture=combined threading=multi
> link=shared,static macosx-version=10.5 macosx-version-min=10.4 darwin/
> cflags=-fvisibility=hidden darwin/cxxflags=-fvisibility=hidden --

1. simply use cxxflags= , not darwin/cxxflags
2. Use quotes around -fvisibility=hidden else bjam will split again at "="

something like cxxflags=" -fvisibility=hidden" should work.

> layout=system --prefix=/tmp/boostbuild_20081124_142343/32 --exec-
> prefix=/tmp/boostbuild_20081124_142343/32 --builddir=../../../
> buildProductsMac/boost install

add -d+2 or use -n to see the resulting command line. Check this for your
flags.

> Thanks in advance for any suggestions regarding eliminating these
> symbol exports.

Please post the resulting command line next time.

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk