[ant-contrib - Help] Linking Mac OSX Universal Binaries?
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.ant-contrib.devel |
|---|---|
| Message-ID | <[email protected]> |
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4319787
By: mardy_marshall
I have been unable to figure out how to get cpptask to properly handle the creation
of universal binaries at the link phase. From the command line, this is typically
done by passing gcc the Darwin specific "-arch [i386|ppc|ppc64]" switch. For
example, to create a "universal" i386 and ppc binary: "gcc -arch i386 -arch
ppc *.c"
I can pass the -arch switches to the compiler and successfully build universal
object files. I do have to use the workaround of breaking it up into multiple
<compilerarg> statements:
<compilerarg value="-arch"/>
<compilerarg value="i386"/>
<compilerarg value="-arch"/>
<compilerarg value="ppc"/>
The problem is that I can't seem to get the linker follow suit. I tried passing
the "-arch" switches to the linker via <linkerarg>, but with no luck.
Any ideas?
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=113701
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/