mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
37 lines
1 KiB
Diff
37 lines
1 KiB
Diff
diff --git a/build/make/configure.sh b/build/make/configure.sh
|
|
index c592b63..e4998d7 100644
|
|
--- a/build/make/configure.sh
|
|
+++ b/build/make/configure.sh
|
|
@@ -1132,6 +1132,32 @@ EOF
|
|
AS=${AS:-nasm}
|
|
add_ldflags -Zhigh-mem
|
|
;;
|
|
+ android*)
|
|
+ SDK_PATH=${sdk_path}
|
|
+ COMPILER_LOCATION=`find "${SDK_PATH}" \
|
|
+ -name "i686-linux-android-gcc*" -print -quit`
|
|
+ TOOLCHAIN_PATH=${COMPILER_LOCATION%/*}/i686-linux-android-
|
|
+ CC=${TOOLCHAIN_PATH}gcc
|
|
+ CXX=${TOOLCHAIN_PATH}g++
|
|
+ AR=${TOOLCHAIN_PATH}ar
|
|
+ LD=${TOOLCHAIN_PATH}gcc
|
|
+ STRIP=${TOOLCHAIN_PATH}strip
|
|
+ NM=${TOOLCHAIN_PATH}nm
|
|
+
|
|
+ if [ -z "${alt_libc}" ]; then
|
|
+ alt_libc=`find "${SDK_PATH}" -name arch-x86 -print | \
|
|
+ awk '{n = split($0,a,"/"); \
|
|
+ split(a[n-1],b,"-"); \
|
|
+ print $0 " " b[2]}' | \
|
|
+ sort -g -k 2 | \
|
|
+ awk '{ print $1 }' | tail -1`
|
|
+ fi
|
|
+
|
|
+ add_cflags "--sysroot=${alt_libc}"
|
|
+ add_ldflags "--sysroot=${alt_libc}"
|
|
+
|
|
+ soft_enable realtime_only
|
|
+ ;;
|
|
esac
|
|
|
|
AS="${alt_as:-${AS:-auto}}"
|