• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [boost] linking on OSX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [boost] linking on OSX


  • Subject: Re: [boost] linking on OSX
  • From: "David M. Cotter" <email@hidden>
  • Date: Wed, 21 Oct 2009 13:07:29 -0700

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [boost] linking on OSX
      • From: Peter O'Gorman <email@hidden>
    • Re: [boost] linking on OSX
      • From: "David M. Cotter" <email@hidden>
References: 
 >Re: [boost] linking on OSX (From: "David M. Cotter" <email@hidden>)
 >Re: [boost] linking on OSX (From: Peter O'Gorman <email@hidden>)
 >Re: [boost] linking on OSX (From: "David M. Cotter" <email@hidden>)
 >Re: [boost] linking on OSX (From: Peter O'Gorman <email@hidden>)

  • Prev by Date: Re: [boost] linking on OSX
  • Next by Date: Re: [boost] linking on OSX
  • Previous by thread: Re: [boost] linking on OSX
  • Next by thread: Re: [boost] linking on OSX
  • Index(es):
    • Date
    • Thread