• 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: Linker refuses to link my dylib? Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linker refuses to link my dylib? Why?


  • Subject: Re: Linker refuses to link my dylib? Why?
  • From: Eric Albert <email@hidden>
  • Date: Thu, 15 Feb 2007 13:23:22 -0800

On Feb 15, 2007, at 12:53 PM, Brad Oliver wrote:

On Feb 15, 2007, at 1:14 PM, email@hidden wrote:

In other words, I'd strongly suggest that you not ship libraries
built non-PIC.

Just to clarify, this is in reference to dynamic libraries and/or libraries that you are distributing to other developers, right?


We do use static libraries a lot in our projects as intermediate build steps, and of course they work fine with non-PIC, but they are just that - intermediates.

That's right -- this is a run-time issue, not a build-time issue, and static libraries aren't used at run-time. If your static libraries get linked into dylibs or bundles, they shouldn't be non-PIC. If they get linked into executables, they can be built with -mdynamic-no- pic.


-Eric

_______________________________________________
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


References: 
 >Re: Linker refuses to link my dylib? Why? (From: Brad Oliver <email@hidden>)

  • Prev by Date: Re: Linker refuses to link my dylib? Why?
  • Next by Date: How to determine libraries and symbols imported by an executable?
  • Previous by thread: Re: Linker refuses to link my dylib? Why?
  • Next by thread: Inline function - multiple includes during link
  • Index(es):
    • Date
    • Thread