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