build: -flto all the things.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 6m34s

This commit is contained in:
Cory McWilliams 2024-07-25 16:02:14 -04:00
parent ca05d402a7
commit 427fcdbdca
2 changed files with 9 additions and 6 deletions

View File

@ -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)

View File

@ -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 && \