-
-
Save miyaki/9965633 to your computer and use it in GitHub Desktop.
configure static liblo for armv7, armv7s, arm64 (iOS7)
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=`xcrun -f --sdk iphoneos clang` \ | |
CXX=`xcrun -f --sdk iphoneos clang++` \ | |
AR=`xcrun -f --sdk iphoneos ar` \ | |
RANLIB=`xcrun -f --sdk iphoneos ranlib` \ | |
NM=`xcrun -f --sdk iphoneos nm` \ | |
CFLAGS="-arch armv7 -arch armv7s -arch arm64 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=7.0 -gdwarf-2 -mthumb -miphoneos-version-min=7.0 -I`xcrun --sdk iphoneos --show-sdk-path`/usr/include -isysroot `xcrun --sdk iphoneos --show-sdk-path`" \ | |
LDFLAGS="-arch armv7 -arch armv7s -arch arm64 -pipe -std=c99 -gdwarf-2 -mthumb -isysroot `xcrun --sdk iphoneos --show-sdk-path`" \ | |
CXXFLAGS="-arch armv7 -arch armv7s -arch arm64 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=7.0 -gdwarf-2 -mthumb -miphoneos-version-min=7.0 -I`xcrun --sdk iphoneos --show-sdk-path`/usr/include -isysroot `xcrun --sdk iphoneos --show-sdk-path`" |
Author
miyaki
commented
Apr 4, 2014
- remove preprocessor env (CPP, CXXCPP)
- use xcrun
- added arm64
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment