From be6597a67888dc2b046127cd61712ab2690117e3 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 14 Dec 2012 13:47:42 +0000 Subject: avoid re-linking if nothing changed. --- android/Bootstrap/Makefile.shared | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'android/Bootstrap/Makefile.shared') 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 -- cgit