Copy the static link library to Xcode 4

I am using the Boost library on OS X using Xcode. Boost was installed on my system using macports. I successfully created my application by adding 3 acceleration libraries that I need (for example, libboost_thread-mt.a) to the Link Binary With Libraries target list of links. However, I need to link these libraries statically so that the application runs on other computers without requiring the installation of the boost library.

How should I do it? Thanks to my many Google searches, I found that I might need to add "-static" - where can I add this to Xcode?

+5
source share
1 answer

.a, . .a. .


:. , dylib, .a. libfoo.dylib libfoo.a , "link libfoo.a" Xcode, libfoo.a , libfoo.dylib. , Xcode -lfoo ( -l , ). , LDFLAGS xcconfig, . , -l. . xcconfig. , Xcode3, .

, " ". .

( ) -Wl,-search_paths_first " ". , .dylib, .a , ( - .dylib .a). , .a .dylib, , .

, , radar, . .

+7

All Articles