summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-12-14 13:47:42 +0000
committerMichael Meeks <michael.meeks@suse.com>2013-02-15 11:41:03 +0000
commitbe6597a67888dc2b046127cd61712ab2690117e3 (patch)
treee45ff8f317e63186875fb52e41eabd083dd20f22 /android
parent98750448594c0a8a1c05c1da907b934d8870c569 (diff)
avoid re-linking if nothing changed.
Diffstat (limited to 'android')
-rw-r--r--android/Bootstrap/Makefile.shared6
1 files changed, 5 insertions, 1 deletions
diff --git a/android/Bootstrap/Makefile.shared b/android/Bootstrap/Makefile.shared
index 01e8aa301225..31029a1024de 100644
--- a/android/Bootstrap/Makefile.shared
+++ b/android/Bootstrap/Makefile.shared
@@ -85,12 +85,16 @@ WHOLELIBS = \
)) \
-Wl,--no-whole-archive
-link-so:
+
+$(OBJLOCAL)/liblo-native-code.so : $(wildcard $(OUTDIR)/lib/lib*.a) native-code.cxx
mkdir -p $(OBJLOCAL)
$(CXX) -Wl,-Map,liblo-native-code.map -Wl,--gc-sections -Wl,--version-script=../../Bootstrap/version.map -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
+
+$(SODEST)/liblo-native-code.so : $(OBJLOCAL)/liblo-native-code.so
mkdir -p $(SODEST)
$(STRIP) -o $(SODEST)/liblo-native-code.so $(OBJLOCAL)/liblo-native-code.so
+link-so: $(SODEST)/liblo-native-code.so
# If you reinstall an app several times *on the emulator*, even if you
# uninstall it between, disk space seems to leak that won't get recycled until