Skip to content

Instantly share code, notes, and snippets.

@miyaki
Forked from mikewoz/configure_liblo_iphone.sh
Last active June 11, 2017 11:07
Show Gist options
  • Save miyaki/9965633 to your computer and use it in GitHub Desktop.
Save miyaki/9965633 to your computer and use it in GitHub Desktop.
configure static liblo for armv7, armv7s, arm64 (iOS7)
./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`"
@miyaki
Copy link
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