Use --gc-sections
Change-Id: I6694f1820dc8c2cdae2522357932ab0065754a75
This commit is contained in:
committed by
Tor Lillqvist
parent
8d32dc82e6
commit
62b4827f23
@@ -49,7 +49,7 @@ properties:
|
||||
link-so:
|
||||
# Build the single .so for this app
|
||||
mkdir -p $(OBJLOCAL)
|
||||
$(CXX) -Wl,-Map,liblo-native-code.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
|
||||
$(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
|
||||
mkdir -p $(SODEST)
|
||||
cp $(OBJLOCAL)/liblo-native-code.so $(SODEST)
|
||||
$(STRIP) --strip-debug $(SODEST)/liblo-native-code.so
|
||||
|
@@ -24,7 +24,7 @@ APP_PACKAGE=org.libreoffice
|
||||
link-so:
|
||||
# Build the single .so for this app
|
||||
mkdir -p $(OBJLOCAL)
|
||||
$(CXX) -Wl,-Map,liblo-native-code.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
|
||||
$(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
|
||||
mkdir -p $(SODEST)
|
||||
cp $(OBJLOCAL)/liblo-native-code.so $(SODEST)
|
||||
$(STRIP) --strip-debug $(SODEST)/liblo-native-code.so
|
||||
|
Reference in New Issue
Block a user