Kaydet (Commit) 0ab64210 authored tarafından Tor Lillqvist's avatar Tor Lillqvist Kaydeden (comit) Tor Lillqvist

Use -ffunction-sections for Android

Part of work towards making the linker more eager to drop unused
functions from the output file.

Change-Id: Id4edb50ef4048f02277a13885b5f81707cb9c8a3
üst bc5cff54
...@@ -194,6 +194,7 @@ if test -n "$with_android_ndk"; then ...@@ -194,6 +194,7 @@ if test -n "$with_android_ndk"; then
ANDROID_APP_ABI=x86 ANDROID_APP_ABI=x86
ANDROIDCFLAGS="-march=atom" ANDROIDCFLAGS="-march=atom"
fi fi
ANDROIDCFLAGS="$ANDROIDCFLAGS -ffunction-sections"
ANDROIDCFLAGS="$ANDROIDCFLAGS -Wno-psabi --sysroot $ANDROID_NDK_HOME/platforms/android-9/arch-$android_cpu -L$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}libs/$ANDROID_APP_ABI" ANDROIDCFLAGS="$ANDROIDCFLAGS -Wno-psabi --sysroot $ANDROID_NDK_HOME/platforms/android-9/arch-$android_cpu -L$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}libs/$ANDROID_APP_ABI"
# When using the 4.6 or newer toolchain, use the gold linker # When using the 4.6 or newer toolchain, use the gold linker
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment