Created
August 11, 2010 15:08
-
-
Save mikewoz/519121 to your computer and use it in GitHub Desktop.
configure static liblo for armv7 & armv7s (iOS6)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./configure \ | |
--host="arm-apple-darwin" \ | |
--enable-static \ | |
--disable-shared \ | |
--disable-dependency-tracking \ | |
CC=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \ | |
CPP=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-cpp-4.2 \ | |
CXXCPP=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-cpp-4.2 \ | |
CXX=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \ | |
AR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar \ | |
RANLIB=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib \ | |
NM=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/nm \ | |
CFLAGS="-arch armv7 -arch armv7s -pipe -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=5.0 -gdwarf-2 -mthumb -miphoneos-version-min=5.0 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk" \ | |
LDFLAGS="-arch armv7 -arch armv7s -pipe -std=c99 -gdwarf-2 -mthumb -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk" \ | |
CXXFLAGS="-arch armv7 -arch armv7s -pipe -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=5.0 -gdwarf-2 -mthumb -miphoneos-version-min=5.0 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk" |
Okay, and now, I've added revision f1ed3b, which creates a universal build (armv6 + armv7). Note that this requires the --disable-dependency-tracking option. So if you're updating headers, you'll need to do a 'make clean' to ensure that the changes get compiled.
Also, in case you're wondering where to find the library once you've compiled, it's here: src/.libs/liblo.a (that's a hidden folder).
Revision 46ad1a is for iOS6 and supports armv7 and armv7s devices
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Revision 31cc8a is for iOS 4.3. Use revision a0bc01 for older versions.