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 \
-fdata-sections \
-fno-exceptions \
-g
-g \
-flto
LDFLAGS += \
-flto \
-Wno-attributes
ANDROID_MIN_SDK_VERSION := 24
ANDROID_TARGET_SDK_VERSION := 34
@ -178,13 +182,11 @@ $(WINDOWS_TARGETS): CFLAGS += \
-D_WIN32_WINNT=0x0A00 \
-DWINVER=0x0A00 \
-DNTDDI_VERSION=NTDDI_WIN10 \
-Ideps/openssl/mingw64/usr/local/include \
-flto
-Ideps/openssl/mingw64/usr/local/include
$(WINDOWS_TARGETS): LDFLAGS += \
-static \
-lm \
-Ldeps/openssl/mingw64/usr/local/lib \
-flto
-Ldeps/openssl/mingw64/usr/local/lib
ifeq ($(UNAME_S),Darwin)
$(MACOS_TARGETS): CC = xcrun clang
$(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-zlib
-Os
-DOPENSSL_SMALL_FOOTPRINT"
-DOPENSSL_SMALL_FOOTPRINT
-flto"
pwd
echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS" && \
./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS && \