• 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: Static linking with the Mach-O linker in PB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Static linking with the Mach-O linker in PB (From: Alex Rice <email@hidden>)

  • Prev by Date: Save Any Color
  • Next by Date: Re: Save Any Color
  • Previous by thread: Re: Static linking with the Mach-O linker in PB
  • Next by thread: Re: Static linking with the Mach-O linker in PB
  • Index(es):
    • Date
    • Thread