Compiling Open Source Software for UNIX using Configure Script

 

 

—————–

 

for iPhone
—————–
export DEVROOT=”`xcode-select -print-path`/Platforms/iPhoneOS.platform/Developer”
export SDKVER=`xcodebuild -showsdks | grep iphoneos | sort | tail -n 1 | awk ‘{ print $2}’ `
export SDKROOT=”$DEVROOT/SDKs/iPhoneOS$SDKVER.sdk”

export PREFIX=”/opt/ios-$SDKVER”
export ARCH=”armv6″

export CC=”$DEVROOT/usr/bin/gcc”
export CFLAGS=”-arch $ARCH -isysroot $SDKROOT”

./configure \
–prefix=”$PREFIX” \
–host=”arm-apple-darwin” \
–enable-static \
–disable-shared $@
—————–
for iPhone-simulator
—————–
见附件



你可能感兴趣的:(open source)