[Libreoffice-commits] .: configure.ac
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Nov 8 05:06:16 PST 2012
configure.ac | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 0ab6421028ba715dfc7c152d0185333e0a5f79f9
Author: Tor Lillqvist <tml at iki.fi>
Date: Thu Nov 8 14:38:57 2012 +0200
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
diff --git a/configure.ac b/configure.ac
index ef6a3d8..0829514 100644
--- a/configure.ac
+++ b/configure.ac
@@ -194,6 +194,7 @@ if test -n "$with_android_ndk"; then
ANDROID_APP_ABI=x86
ANDROIDCFLAGS="-march=atom"
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"
# When using the 4.6 or newer toolchain, use the gold linker
More information about the Libreoffice-commits
mailing list