From: Jay Freeman (saurik) Date: Wed, 18 Nov 2015 08:22:04 +0000 (-0800) Subject: Avoid leaking lots of symbols into static library. X-Git-Tag: v0.9.590~306 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/0aeeae8e094867275e305d2e2de7089ddaf23bc8 Avoid leaking lots of symbols into static library. --- diff --git a/apple.mk b/apple.mk index cecf384..429d4a4 100644 --- a/apple.mk +++ b/apple.mk @@ -154,7 +154,7 @@ Cycript.lib/libcycript-sim.dylib: build.sim-i386/.libs/libcycript.dylib build.si libcycript-%.o: build.%/.libs/libcycript.a xcode.map @mkdir -p $(dir $@) - ld -r -arch $$($(lipo) -detailed_info $< | sed -e '/^Non-fat file: / ! d; s/.*: //') -o $@ -all_load -exported_symbols_list xcode.map $< libffi.a + ld -r -arch $$($(lipo) -detailed_info $< | sed -e '/^Non-fat file: / ! d; s/.*: //') -o $@ -all_load -exported_symbols_list xcode.map -x $< libffi.a libcycript-ios.o: libcycript-ios-armv6.o libcycript-ios-armv7.o libcycript-ios-armv7s.o libcycript-ios-arm64.o libcycript-sim-i386.o libcycript-sim-x86_64.o $(lipo) -create -output $@ $^