Re: [boost] linking on OSX

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

OMG it was the missing comma! the correct command is thus: ./bjam macosx-version-min=10.4 architecture=combined linkflags="-Wl,- force_cpusubtype_ALL" --with-thread -a install On Oct 21, 2009, at 1:07 PM, David M. Cotter wrote:
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
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/me%40davecotter.com
This email sent to me@davecotter.com

David M. Cotter wrote:
OMG it was the missing comma! the correct command is thus:
./bjam macosx-version-min=10.4 architecture=combined linkflags="-Wl,- force_cpusubtype_ALL" --with-thread -a install
So, did it have the desired effect? (I would be very surprised if linker option is the only thing that is required to generate code for older processors, but only OSX expert can comment on this). - Volodya

yes, everything is working perfectly now. On Oct 21, 2009, at 11:53 PM, Vladimir Prus wrote:
David M. Cotter wrote:
OMG it was the missing comma! the correct command is thus:
./bjam macosx-version-min=10.4 architecture=combined linkflags="-Wl,- force_cpusubtype_ALL" --with-thread -a install
So, did it have the desired effect?
(I would be very surprised if linker option is the only thing that is required to generate code for older processors, but only OSX expert can comment on this).
- Volodya
participants (2)
-
David M. Cotter
-
Vladimir Prus