From 79501af17413d36d930f40a3cce0ef042ae26427 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 19 Apr 2006 03:49:57 +0000 Subject: [PATCH] I think this is it... --- build-scripts/fatbuild.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build-scripts/fatbuild.sh b/build-scripts/fatbuild.sh index 250f034b..0ac9c215 100755 --- a/build-scripts/fatbuild.sh +++ b/build-scripts/fatbuild.sh @@ -116,10 +116,12 @@ fi # # Combine into fat binary # -target=`echo build/x86/build/.libs/*.dylib | sed 's|.*/||'` +target=`find x86 -type f -name '*.dylib' | sed 's|.*/||'` if test x$merge = xyes; then (cd build && \ - lipo -create -o $target */build/.libs/libSDL.dylib && + lipo -create -o $target `find ppc x86 -type f -name "*.dylib"` && + ln -s $target libSDL-1.2.0.dylib + ln -s $target libSDL.dylib lipo -create -o SDLMain.o */build/SDLMain.o && ar cru libSDLmain.a SDLMain.o && ranlib libSDLmain.a && echo "Build complete!" &&