Skip to content

Commit 29b8998

Browse files
committed
update Makefile
1 parent 1d9e51a commit 29b8998

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ endif
4141

4242
# disable LTO if DEBUG > 0
4343
ifeq ($(shell [ $(DEBUG) -gt 0 ] && echo true),true)
44-
ENABLE_LTO := 0
44+
override ENABLE_LTO := 0
4545
endif
4646

4747
# disable LTO if MACOS_UNIVERSAL_BINARY == 1
4848
ifeq ($(UNAME),Darwin)
4949
ifeq ($(MACOS_UNIVERSAL_BINARY),1)
50-
ENABLE_LTO := 0
50+
override ENABLE_LTO := 0
5151
endif
5252
endif
5353

@@ -61,7 +61,7 @@ endif
6161
ifeq ($(BUILD_MODE),native)
6262
ifeq ($(CC),clang)
6363
ifneq (,$(filter MSYS2 NetBSD DragonFly,$(UNAME)))
64-
ENABLE_LTO := 0
64+
override ENABLE_LTO := 0
6565
endif
6666
endif
6767
endif
@@ -238,7 +238,7 @@ endif
238238
# disable LTO if MSYS2 and CC is clang
239239
ifeq ($(UNAME),MSYS2)
240240
ifeq ($(CC_NATIVE_CLANG),1)
241-
ENABLE_LTO := 0
241+
override ENABLE_LTO := 0
242242
endif
243243
endif
244244

0 commit comments

Comments
 (0)