forked from cory/tildefriends
build: -flto all the things.
This commit is contained in:
parent
ca05d402a7
commit
427fcdbdca
12
GNUmakefile
12
GNUmakefile
@ -57,7 +57,11 @@ CFLAGS += \
|
|||||||
-ffunction-sections \
|
-ffunction-sections \
|
||||||
-fdata-sections \
|
-fdata-sections \
|
||||||
-fno-exceptions \
|
-fno-exceptions \
|
||||||
-g
|
-g \
|
||||||
|
-flto
|
||||||
|
LDFLAGS += \
|
||||||
|
-flto \
|
||||||
|
-Wno-attributes
|
||||||
|
|
||||||
ANDROID_MIN_SDK_VERSION := 24
|
ANDROID_MIN_SDK_VERSION := 24
|
||||||
ANDROID_TARGET_SDK_VERSION := 34
|
ANDROID_TARGET_SDK_VERSION := 34
|
||||||
@ -178,13 +182,11 @@ $(WINDOWS_TARGETS): CFLAGS += \
|
|||||||
-D_WIN32_WINNT=0x0A00 \
|
-D_WIN32_WINNT=0x0A00 \
|
||||||
-DWINVER=0x0A00 \
|
-DWINVER=0x0A00 \
|
||||||
-DNTDDI_VERSION=NTDDI_WIN10 \
|
-DNTDDI_VERSION=NTDDI_WIN10 \
|
||||||
-Ideps/openssl/mingw64/usr/local/include \
|
-Ideps/openssl/mingw64/usr/local/include
|
||||||
-flto
|
|
||||||
$(WINDOWS_TARGETS): LDFLAGS += \
|
$(WINDOWS_TARGETS): LDFLAGS += \
|
||||||
-static \
|
-static \
|
||||||
-lm \
|
-lm \
|
||||||
-Ldeps/openssl/mingw64/usr/local/lib \
|
-Ldeps/openssl/mingw64/usr/local/lib
|
||||||
-flto
|
|
||||||
ifeq ($(UNAME_S),Darwin)
|
ifeq ($(UNAME_S),Darwin)
|
||||||
$(MACOS_TARGETS): CC = xcrun clang
|
$(MACOS_TARGETS): CC = xcrun clang
|
||||||
$(IOS_TARGETS): IOS_SYSROOT := $(shell xcrun --sdk iphoneos --show-sdk-path)
|
$(IOS_TARGETS): IOS_SYSROOT := $(shell xcrun --sdk iphoneos --show-sdk-path)
|
||||||
|
@ -68,7 +68,8 @@ build_the_thing() {
|
|||||||
no-weak-ssl-ciphers
|
no-weak-ssl-ciphers
|
||||||
no-zlib
|
no-zlib
|
||||||
-Os
|
-Os
|
||||||
-DOPENSSL_SMALL_FOOTPRINT"
|
-DOPENSSL_SMALL_FOOTPRINT
|
||||||
|
-flto"
|
||||||
pwd
|
pwd
|
||||||
echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS" && \
|
echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS" && \
|
||||||
./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS && \
|
./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS && \
|
||||||
|
Loading…
Reference in New Issue
Block a user