Linking Mac OSX Universal Binaries?

Help
2007-05-18
2013-04-24
  • Mardy Marshall

    Mardy Marshall - 2007-05-18

    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?

     
    • Caleb Cittadino

      Caleb Cittadino - 2007-05-22

      I am having the same issue =(  Any help here would be hot.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks