rendered paste bodyFrom 005d2a556a0eaa0a7e5ba990c8b96b32e2f0fb36 Mon Sep 17 00:00:00 2001
From: Max Poliakovski <maximumspatium@googlemail.com>
Date: Mon, 23 Feb 2015 13:41:34 +0100
Subject: [PATCH] Leptonica: disable compilation of additional programs.
---
leptonica/cppbuild.sh | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/leptonica/cppbuild.sh b/leptonica/cppbuild.sh
index 09adf3f..b9e71da 100755
--- a/leptonica/cppbuild.sh
+++ b/leptonica/cppbuild.sh
@@ -52,27 +52,27 @@ fi
case $PLATFORM in
android-arm)
- ./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)
- ./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
;;
--
1.9.1