Skip to content

Instantly share code, notes, and snippets.

View smalllixin's full-sized avatar

LiXin smalllixin

  • Shenzhen
View GitHub Profile
@smalllixin
smalllixin / png_build.sh
Last active January 17, 2017 10:31 — forked from wuhao5/png_build.sh
build libpng for iOS/MacOS X (bitcode enabled)
## By using the following script successfully build libpng 1.6.24 universal lib for iOS
##
##
rm -rf install_*
rm -rf output-*
# build simulator
./configure --prefix=`pwd`/install_i386 CFLAGS="-Ofast -mios-version-min=7.0 -fembed-bitcode" LDFLAGS="-flto" CC="xcrun -sdk iphonesimulator clang -arch i386" --host=i386
make clean && make -j8 && make install