build-scripts/fatbuild.sh
changeset 1645 2a55580b767b
parent 1639 0f466fb614a9
child 1646 7c53bb4b1db4
equal deleted inserted replaced
1644:8a858076f39d 1645:2a55580b767b
   117 # Combine into fat binary
   117 # Combine into fat binary
   118 #
   118 #
   119 target=`echo build/x86/build/.libs/*.dylib | sed 's|.*/||'`
   119 target=`echo build/x86/build/.libs/*.dylib | sed 's|.*/||'`
   120 if test x$merge = xyes; then
   120 if test x$merge = xyes; then
   121     (cd build && \
   121     (cd build && \
   122      lipo -create -o $target */build/.libs/*.dylib &&
   122      lipo -create -o $target */build/.libs/libSDL.dylib &&
   123      lipo -create -o SDLMain.o */build/SDLMain.o &&
   123      lipo -create -o SDLMain.o */build/SDLMain.o &&
   124      ar cru libSDLmain.a SDLMain.o && ranlib libSDLmain.a &&
   124      ar cru libSDLmain.a SDLMain.o && ranlib libSDLmain.a &&
   125      echo "Build complete!" &&
   125      echo "Build complete!" &&
   126      echo "Files can be found in the build directory.") || exit 4
   126      echo "Files can be found in the build directory.") || exit 4
   127 fi
   127 fi