Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode lets me link universal binary against thin static library



On Mar 31, 2006, at 3:33 PM, Rush Manbert wrote:

I started changing my projects to build universal libraries and binaries and the first thing I tested was whether I could link universal against a thin static library. I hoped that this would fail, because it's eventually going to fail at runtime. (Let's say I build the universal on my Intel box, so that it only ends up being correctly linked for the i386 architecture. Then I run the "universal" binary on my ppc. Since there's no valid ppc executable inside the universal binary it should fail. If I did it the other way around, I might be "saved" by Rosetta.) What I found was that the build appeared to succeed.


I have two questions:

1) Is there any reason that this isn't a bug?

2) Has anyone filed a bug on this?


It depends on how far you got after you started changing your projects to build universal.  Did you get to a) using the 10.4u SDK, b) setting the Architectures to ppc i386, and c) building a Release build?  Because linking a Universal binary against a thin static lib should have failed under those circumstances.  

Could you please post the part of the build transcript where linking takes place?

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Xcode lets me link universal binary against thin static library (From: Rush Manbert <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.