Skip to content

Commit

Permalink
Disable build of additional unneeded Leptonica programs (issue #36)
Browse files Browse the repository at this point in the history
  • Loading branch information
saudet committed Feb 28, 2015
1 parent 1c8d71d commit 39260c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions leptonica/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,28 +53,28 @@ fi
case $PLATFORM in
android-arm)
patch -Np1 < ../../../leptonica-$LEPTONICA_VERSION-android.patch
./configure --prefix=$INSTALL_PATH --host="arm-linux-androideabi" --with-sysroot="$ANDROID_ROOT" CC="$ANDROID_BIN-gcc" STRIP="$ANDROID_BIN-strip" CFLAGS="--sysroot=$ANDROID_ROOT -DANDROID -fPIC -ffunction-sections -funwind-tables -fstack-protector -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300" LDFLAGS="-nostdlib -Wl,--fix-cortex-a8" LIBS="-lgcc -ldl -lz -lm -lc"
./configure --prefix=$INSTALL_PATH --host="arm-linux-androideabi" --with-sysroot="$ANDROID_ROOT" CC="$ANDROID_BIN-gcc" STRIP="$ANDROID_BIN-strip" CFLAGS="--sysroot=$ANDROID_ROOT -DANDROID -fPIC -ffunction-sections -funwind-tables -fstack-protector -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300" LDFLAGS="-nostdlib -Wl,--fix-cortex-a8" LIBS="-lgcc -ldl -lz -lm -lc" --disable-programs
make -j4
make install-strip
;;
android-x86)
patch -Np1 < ../../../leptonica-$LEPTONICA_VERSION-android.patch
./configure --prefix=$INSTALL_PATH --host="i686-linux-android" --with-sysroot="$ANDROID_ROOT" CC="$ANDROID_BIN-gcc" STRIP="$ANDROID_BIN-strip" CFLAGS="--sysroot=$ANDROID_ROOT -DANDROID -fPIC -ffunction-sections -funwind-tables -mssse3 -mfpmath=sse -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300" LDFLAGS="-nostdlib" LIBS="-lgcc -ldl -lz -lm -lc"
./configure --prefix=$INSTALL_PATH --host="i686-linux-android" --with-sysroot="$ANDROID_ROOT" CC="$ANDROID_BIN-gcc" STRIP="$ANDROID_BIN-strip" CFLAGS="--sysroot=$ANDROID_ROOT -DANDROID -fPIC -ffunction-sections -funwind-tables -mssse3 -mfpmath=sse -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300" LDFLAGS="-nostdlib" LIBS="-lgcc -ldl -lz -lm -lc" --disable-programs
make -j4
make install-strip
;;
linux-x86)
./configure --prefix=$INSTALL_PATH CC="gcc -m32"
./configure --prefix=$INSTALL_PATH CC="gcc -m32" --disable-programs
make -j4
make install-strip
;;
linux-x86_64)
./configure --prefix=$INSTALL_PATH CC="gcc -m64"
./configure --prefix=$INSTALL_PATH CC="gcc -m64" --disable-programs
make -j4
make install-strip
;;
macosx-*)
./configure --prefix=$INSTALL_PATH
./configure --prefix=$INSTALL_PATH --disable-programs
make -j4
make install-strip
;;
Expand Down

0 comments on commit 39260c3

Please sign in to comment.