From 1684c8f398922065a97e7da4dac4ac6a33cc5218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Wed, 9 Apr 2014 16:03:55 +0200 Subject: Back to the standard "app" module. This return to "app" instead of "bitmask_android" is due to this reading: https://developer.android.com/sdk/installing/studio-build.html#projectStructure I'll have to tweak the final apk name in build.gradle. --- app/lzo/B/generic/build_gcc.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 app/lzo/B/generic/build_gcc.sh (limited to 'app/lzo/B/generic/build_gcc.sh') diff --git a/app/lzo/B/generic/build_gcc.sh b/app/lzo/B/generic/build_gcc.sh new file mode 100755 index 00000000..179d8c0f --- /dev/null +++ b/app/lzo/B/generic/build_gcc.sh @@ -0,0 +1,25 @@ +#! /bin/sh +# vi:ts=4:et +set -e +echo "// Using GNU C compiler." +echo "//" + +test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../.. +UNAME_MACHINE=unknown + +CC="gcc -fPIC" +CC="gcc -static" +CC="gcc" +CFLAGS="-Wall -O2 -fomit-frame-pointer" + +# delete the next line to disable assembler support +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +case $UNAME_MACHINE in + i[34567]86) + CC="$CC -m32" + CPPFLAGS="-DLZO_USE_ASM" + LZO_EXTRA_SOURCES=$top_srcdir/asm/i386/src_gas/*.S + ;; +esac + +. $top_srcdir/B/generic/build.sh -- cgit v1.2.3