Use LTO for the Cydia build
This commit is contained in:
parent
65ab06e124
commit
72df7056f5
2 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue