Re: Static linking with the Mach-O linker in PB
Re: Static linking with the Mach-O linker in PB
- Subject: Re: Static linking with the Mach-O linker in PB
- From: Sherm Pendley <email@hidden>
- Date: Tue, 3 Jun 2003 15:26:23 -0400
On Tuesday, June 3, 2003, at 11:45 AM, Alex Rice wrote:
I thought it was a total hack but it's what everyone else is doing too!
Just hide the dylib file from the linker! Assuming there is an .a
library left-- it will get statically linked.
A related tip - if you're compiling the library from source, and it was
built using GNU auto* tools, you can run the configure script with the
"--disable-shared" option. Not only will that build just the static
library, it will also cut your build time in half, because
automake-generated makefiles build each source file twice by default -
once with the options needed for a static library, and once with -fPIC
and other options needed for a shared library.
sherm--
"When the program is being tested, it is too late to make design
changes."
-- The Tao of Programming
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.