Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ARCHS="-arch armv6 -arch armv7"
- ARCHSIM="-arch i386"
- mkdir libs
- ./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"
- make
- cp objs/.libs/libfreetype.a libs/libfreetype-device.a
- make clean
- ./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"
- make
- cp objs/.libs/libfreetype.a libs/libfreetype-simulator.a
- cd libs
- lipo -create -output libfreetype.a libfreetype-device.a libfreetype-simulator.a
- rm libfreetype-device.a
- rm libfreetype-simulator.a
- lipo -info libfreetype.a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement