|
Boost : |
Subject: Re: [boost] linking on OSX
From: David M. Cotter (me_at_[hidden])
Date: 2009-10-21 16:13:31
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_at_[hidden])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/xcode-users/me%40davecotter.com
>
> This email sent to me_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk