Re: conditionally linking to a static lib?
Re: conditionally linking to a static lib?
- Subject: Re: conditionally linking to a static lib?
- From: Greg Guerin <email@hidden>
- Date: Thu, 8 Oct 2009 16:23:49 -0700
John Mikros wrote:
I'm not sure how I would do that without wrapping everything else
in #ifdef __i386__
I would think that I can't just make a completely independent lib
with the same name, because Xcode is looking for the one in the
build products folder.
Break it down.
Target A: i386-only static lib.
Target B: ppc-only static lib (contains nothing() function)
Target C: depends on A & B; output is combined libs A + B.
The output of C is now a static lib containing a lot of i386 code and
only one ppc function, i.e. nothing(). Make your app dependent on C,
not A or B.
For an example of the command that makes a static lib given 2 other
static libs, maybe look in the build log for A or B. I'm too lazy to
look, so my guess is 'ar' or 'libtool'.
-- GG
_______________________________________________
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