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: Converting a jnilib to Intel



On 2005-06-15, at 19:30, email@hidden wrote:
From: Eric Albert <email@hidden>
Subject: Re: Converting a jnilib to Intel

In article <email@hidden>,
 "William C. McCain" <email@hidden> wrote:

2. If not, how do I convert "libserial.jnilib" to the "universal binary" 
format?  Do I simply recompile it with the latest GCC (4.0)?  If so, 
what GCC options must I specify to get a JNI-compatible "universal binary"?


Read the Universal Binary Programming Guidelines.  Everything you need 
to know about building universal binaries should be in there.

The implication there, as I understood it, was that you'd use "-arch ppc -arch i386" arguments to gcc(1)/g++(1) and (if you link separately) ld(1). Is that correct?

I'd expected to have to build twice, once with "-arch ppc" and once with "-arch i386", and then run some other tool such as lipo(1) to combine the separate executables/shared objects into a fat (sorry, "universal") binary.

As far as I can see, and I've skimmed the document three times now, there's no mention of any such process.

["'Universal' binary, my ass! Does it run on Linux/alpha? Or Solaris/amd64? Or Symbian/arm?".]

-- 

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

This email sent to 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.