Re: Linker refuses to link my dylib? Why?
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