android/Bootstrap/version.map | 7 +++++++ android/experimental/DocumentLoader/Makefile | 5 ++--- android/experimental/LibreOffice4Android/Makefile | 5 ++--- 3 files changed, 11 insertions(+), 6 deletions(-)
New commits: commit 26b8cd2b3ef8fed72ba52e0b8f9b002f7cfd23c4 Author: Tor Lillqvist <[email protected]> Date: Fri Nov 16 16:17:27 2012 +0200 Reduce dynamic symbols and strip all local ones from the Android single .so Use a version script ("version map") that exports only the Java_* and JNI_OnLoad symbols that the JNI machinery needs. No non-dynamic symbols are needed (in the .so that goes into the .apk; the one kept locally for debugging is not stripped). Change-Id: Ie874e59c593ec9e5d08ba369612cef1a3ea85fe4 diff --git a/android/Bootstrap/version.map b/android/Bootstrap/version.map new file mode 100644 index 0000000..1b65003 --- /dev/null +++ b/android/Bootstrap/version.map @@ -0,0 +1,7 @@ +dummy { + global: + Java_*; + JNI_OnLoad; + local: + *; +}; diff --git a/android/experimental/DocumentLoader/Makefile b/android/experimental/DocumentLoader/Makefile index 15c6a0a..afc5241 100644 --- a/android/experimental/DocumentLoader/Makefile +++ b/android/experimental/DocumentLoader/Makefile @@ -49,10 +49,9 @@ properties: link-so: # Build the single .so for this app mkdir -p $(OBJLOCAL) - $(CXX) -Wl,-Map,liblo-native-code.map -Wl,--gc-sections -Wl,--stats -Wl,--no-keep-files-mapped -Wl,--no-undefined -DANDROID -DDISABLE_DYNLOADING -shared -o $(OBJLOCAL)/liblo-native-code.so -I$(OUTDIR)/inc native-code.cxx -L$(OUTDIR)/lib $(WHOLELIBS) $(LIBS) -lgnustl_static -landroid -llog -lz + $(CXX) -Wl,-Map,liblo-native-code.map -Wl,--gc-sections -Wl,--version-script=../../Bootstrap/version.map -Wl,--stats -Wl,--no-keep-files-mapped -Wl,--no-undefined -DANDROID -DDISABLE_DYNLOADING -shared -o $(OBJLOCAL)/liblo-native-code.so -I$(OUTDIR)/inc native-code.cxx -L$(OUTDIR)/lib $(WHOLELIBS) $(LIBS) -lgnustl_static -landroid -llog -lz mkdir -p $(SODEST) - cp $(OBJLOCAL)/liblo-native-code.so $(SODEST) - $(STRIP) --strip-debug $(SODEST)/liblo-native-code.so + $(STRIP) -o $(SODEST)/liblo-native-code.so $(OBJLOCAL)/liblo-native-code.so copy-stuff: # Then "assets". Let the directory structure under assets mimic diff --git a/android/experimental/LibreOffice4Android/Makefile b/android/experimental/LibreOffice4Android/Makefile index c823ebf..bbe1587 100644 --- a/android/experimental/LibreOffice4Android/Makefile +++ b/android/experimental/LibreOffice4Android/Makefile @@ -24,10 +24,9 @@ APP_PACKAGE=org.libreoffice link-so: # Build the single .so for this app mkdir -p $(OBJLOCAL) - $(CXX) -Wl,-Map,liblo-native-code.map -Wl,--gc-sections -Wl,--stats -Wl,--no-keep-files-mapped -Wl,--no-undefined -DANDROID -DDISABLE_DYNLOADING -shared -o $(OBJLOCAL)/liblo-native-code.so -I$(OUTDIR)/inc native-code.cxx -L$(OUTDIR)/lib $(WHOLELIBS) $(LIBS) -lgnustl_static -landroid -llog -lz + $(CXX) -Wl,-Map,liblo-native-code.map -Wl,--gc-sections -Wl,--version-script=../../Bootstrap/version.map -Wl,--stats -Wl,--no-keep-files-mapped -Wl,--no-undefined -DANDROID -DDISABLE_DYNLOADING -shared -o $(OBJLOCAL)/liblo-native-code.so -I$(OUTDIR)/inc native-code.cxx -L$(OUTDIR)/lib $(WHOLELIBS) $(LIBS) -lgnustl_static -landroid -llog -lz mkdir -p $(SODEST) - cp $(OBJLOCAL)/liblo-native-code.so $(SODEST) - $(STRIP) --strip-debug $(SODEST)/liblo-native-code.so + $(STRIP) -o $(SODEST)/liblo-native-code.so $(OBJLOCAL)/liblo-native-code.so copy-stuff: # Then "assets". Let the directory structure under assets mimic _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
