Use LTO for the Cydia build

This commit is contained in:
pancake 2019-08-22 20:22:11 +02:00
parent 65ab06e124
commit 72df7056f5
2 changed files with 8 additions and 2 deletions

View file

@ -19,6 +19,9 @@ LDFLAGS+=-lpthread
LDFLAGS+=-ldl
endif
endif
ifeq ($(USE_LTO),1)
LDFLAGS+=-flto
endif
CFLAGS+=-I../../libr/include/
CFLAGS+=-I$(SHLR)/spp

View file

@ -110,8 +110,11 @@ else
time make -j4
if [ "$static" = 1 ]; then
rm -f libr/*/*.dylib
( cd binr ; make clean ;
cd blob ; make -j 4)
(
cd binr ; make clean ;
cd blob ; make USE_LTO=1
xcrun --sdk iphoneos strip radare2
)
fi
if [ $? = 0 ]; then
makeDeb