Advertisement
Guest User

Untitled

a guest
Jun 21st, 2011
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ARCHS="-arch armv6 -arch armv7"
  4. ARCHSIM="-arch i386"
  5.  
  6. mkdir libs
  7.  
  8. ./configure --prefix=/usr/local/iphone --host=arm-apple-darwin --enable-static=yes --enable-shared=no CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang CFLAGS="$ARCHS -pipe -mdynamic-no-pic -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O2 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=3.0 -gdwarf-2 -mthumb -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS$1.sdk/usr/include/libxml2 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS$1.sdk" CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar LDFLAGS="$ARCHS -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS$1.sdk -Wl,-dead_strip -miphoneos-version-min=3.0"
  9.  
  10. make
  11.  
  12. cp objs/.libs/libfreetype.a libs/libfreetype-device.a
  13.  
  14. make clean
  15.  
  16. ./configure --prefix=/usr/local/iphone --enable-static=yes --enable-shared=no CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang CFLAGS="$ARCHSIM -pipe -mdynamic-no-pic -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O2 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -I/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator$1.sdk/usr/include/ -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator$1.sdk" CPP=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/cpp AR=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ar LDFLAGS="$ARCHSIM -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator$1.sdk -Wl,-dead_strip"
  17.  
  18. make
  19.  
  20. cp objs/.libs/libfreetype.a libs/libfreetype-simulator.a
  21.  
  22. cd libs
  23.  
  24. lipo -create -output libfreetype.a libfreetype-device.a libfreetype-simulator.a
  25.  
  26. rm libfreetype-device.a
  27. rm libfreetype-simulator.a
  28.  
  29. lipo -info libfreetype.a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement