I am looking for the most straightforward way to build a universal binary of gsl on OSX. Simply passing CFLAGS/LDFLAGS="-arch i386 -arch ppc" doesn't work due to incompatible flags in config.h, as far as I can tell. I was able to make it work using this method:
tar -xzf gsl-1.9.tar.gz && mv gsl-1.9 gsl-1.9_intel && cp -r gsl-1.9_intel gsl-1.9_ppc cd gsl-1.9_intel && ./configure --disable-dependency-tracking --disable-shared --enable-static cd .. && cd gsl-1.9_ppc env CFLAGS="-arch ppc" LDFLAGS="-arch ppc" ./configure --disable-dependency-tracking --enable-shared --disable-static --build=powerpc-apple-darwin8.10.0 cd .. && cd gsl-1.9_intel ./configure --disable-dependency-tracking --enable-shared --disable-static lipo -create .libs/libgsl.0.10.0.dylib ../gsl-1.9_ppc/.libs/libgsl.0.10.0.dylib -output .libs/libgsl.0.10.0.dylib lipo -create cblas/.libs/libgslcblas.0.0.0.dylib ../gsl-1.9_ppc/cblas/.libs/libgslcblas.0.0.0.dylib -output cblas/.libs/libgslcblas.0.0.0.dylib sudo make install-strip I would be interested in a more straightforward method of creating a universal binary out of the same configuration.. Cheers, Brian _______________________________________________ Help-gsl mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gsl
