changing a library from static (.a) to dynamic (.dylib)
changing a library from static (.a) to dynamic (.dylib)
- Subject: changing a library from static (.a) to dynamic (.dylib)
- From: Stuart Smith <email@hidden>
- Date: Mon, 01 Mar 2010 15:28:51 -0800
- Thread-topic: changing a library from static (.a) to dynamic (.dylib)
Title: changing a library from static (.a) to dynamic (.dylib)
Is it possible to change the type of output produced by a target from a static library (libXXX.a) to a dynamic library (libXXX.dylib).
I’m using Xcode 3.2.1 on Mac OS X 10.6.2 to build an Intel-only library. I have a static library which works, but suffers from an inability to hide the symbols within it from its hosting executable, because “symbols hidden by default” does not work for static libraries.
I copied the target, changed its “Mach-O Type” to Dynamic Library and its executable extension to “dylib”. This builds a file which looks like a dynamic library, but behaves like a static library – I haven’t copied it to my executable’s Frameworks folder, or anywhere else where the host exectuable may find it, and yet my application builds and runs. Also, in the General tab of the Target Info window, the Type: field still says “Static Library”. I suspect that my “.dylib” is actually a static library after all.
So, does anyone know how I can change a library from static to dynamic?
t.i.a.,
Stuart
_______________________________________________
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