universal dylibs
apple's got a short page on how to create universal targets with automake, but my bash based shell scripting is pretty horrid so I kept getting things wrong. I found this little snippet that seems to work well, though:
env CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" ./configure --disable-dependency-tracking
just run that to configure, and make and sudo make install as usual.
update: this didn't quite work for libid3tag, even though the above code was in reference to it. here's a couple more tips:
make LDFLAGS="-syslibroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"
that'll get the LDFLAGS through to libtool, which subsequently chucks them out. my one-off solution is to copy/paste the gcc command it builds, inserting the LDFLAGS manually. yuck.
env CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" ./configure --disable-dependency-tracking
just run that to configure, and make and sudo make install as usual.
update: this didn't quite work for libid3tag, even though the above code was in reference to it. here's a couple more tips:
make LDFLAGS="-syslibroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"
that'll get the LDFLAGS through to libtool, which subsequently chucks them out. my one-off solution is to copy/paste the gcc command it builds, inserting the LDFLAGS manually. yuck.
0 Comments:
Post a Comment
<< Home