Boost logo

Boost :

Subject: Re: [boost] linking on OSX
From: David M. Cotter (me_at_[hidden])
Date: 2009-10-21 16:07:29


>> please be explicit, are you saying i should type exactly this:
>>
>> ./bjam macosx-version-min=10.4 architecture=combined
>> linkflags="-Wl,-force_cpusubtype_ALL" --with-thread -a -n install
>
> I don't know how to use bjam, nor do I have any wish to learn, so I
> can't help you with its command line arguments.
> Did doing that give you -Wl,-force_cpusubtype_ALL for the g++
> command that creates libboost_thread.dylib?

apparently the extra -Wl is not necessary, since when i leave it off,
it still gets sent, probably due to the macosx-min-version flag.

WITH:
> ./bjam macosx-version-min=10.4 architecture=combined linkflags="-Wl
-force_cpusubtype_ALL" --with-thread -a -n install

     "g++" -dynamiclib -Wl,-single_module -install_name
"libboost_thread.dylib" -o "bin.v2/libs/thread/build/darwin-4.2.1/
release/architecture-combined/macosx-version-min-10.4/threading-multi/
libboost_thread.dylib" "bin.v2/libs/thread/build/darwin-4.2.1/release/
architecture-combined/macosx-version-min-10.4/threading-multi/pthread/
thread.o" "bin.v2/libs/thread/build/darwin-4.2.1/release/architecture-
combined/macosx-version-min-10.4/threading-multi/pthread/exceptions.o"
"bin.v2/libs/thread/build/darwin-4.2.1/release/architecture-combined/
macosx-version-min-10.4/threading-multi/pthread/once.o" -
headerpad_max_install_names -mmacosx-version-min=10.4 -Wl,-dead_strip -
no_dead_strip_inits_and_terms -arch i386 -arch ppc -Wl -
force_cpusubtype_ALL

note: see it's in there TWICE? is the problem that i'm missing a comma?

WITHOUT:
> ./bjam macosx-version-min=10.4 architecture=combined linkflags="-
force_cpusubtype_ALL" --with-thread -a -n install

     "g++" -dynamiclib -Wl,-single_module -install_name
"libboost_thread.dylib" -o "bin.v2/libs/thread/build/darwin-4.2.1/
release/architecture-combined/macosx-version-min-10.4/threading-multi/
libboost_thread.dylib" "bin.v2/libs/thread/build/darwin-4.2.1/release/
architecture-combined/macosx-version-min-10.4/threading-multi/pthread/
thread.o" "bin.v2/libs/thread/build/darwin-4.2.1/release/architecture-
combined/macosx-version-min-10.4/threading-multi/pthread/exceptions.o"
"bin.v2/libs/thread/build/darwin-4.2.1/release/architecture-combined/
macosx-version-min-10.4/threading-multi/pthread/once.o" -
headerpad_max_install_names -mmacosx-version-min=10.4 -Wl,-dead_strip -
no_dead_strip_inits_and_terms -arch i386 -arch ppc -force_cpusubtype_ALL


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk