From 2c9257f1a8075c4437363fc0f255ebf023b8785b Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 26 Jan 2025 09:33:45 -0500 Subject: [PATCH] build: Trying to understand a build thing. --- GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 0ef47a26..29f7c9be 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1146,13 +1146,13 @@ $(filter $(BUILD_DIR)/android%,$(APP_OBJS)): | $(ANDROID_DEPS) ifeq ($(UNAME_S),Linux) LOCAL_DEPS := deps/openssl/$(UNAME_S)/$(UNAME_M)/usr/local/lib/libssl.a $(LOCAL_DEPS): - +@OPTIONS=-flto tools/ssl-local + +@OPTIONS="-flto -ffat-lto-objects" tools/ssl-local $(filter $(BUILD_DIR)/debug/%,$(APP_OBJS)) $(filter $(BUILD_DIR)/release/%,$(APP_OBJS)): | $(LOCAL_DEPS) ifeq ($(HAVE_CROSS_AARCH64),1) LOCAL_DEPS := deps/openssl/$(UNAME_S)/aarch64/usr/local/lib/libssl.a $(LOCAL_DEPS): - +@OPTIONS="--cross-compile-prefix=aarch64-linux-gnu- -flto" BUILD_TARGET=aarch64 tools/ssl-local + +@OPTIONS="--cross-compile-prefix=aarch64-linux-gnu- -flto -ffat-lto-objects" BUILD_TARGET=aarch64 tools/ssl-local $(filter $(BUILD_DIR)/armdebug/%,$(APP_OBJS)) $(filter $(BUILD_DIR)/armrelease/%,$(APP_OBJS)): | $(LOCAL_DEPS) endif