We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0fa599c + 75ec57d commit 1492ff0Copy full SHA for 1492ff0
1 file changed
Make.inc
@@ -99,8 +99,10 @@ ifeq ($(ARCH),x86_64)
99
override ARCH := amd64
100
endif
101
102
-# The optimization flag may be overriden with the environment variable CFLAGS.
103
-CFLAGS ?= -O3
+# If CFLAGS does not contain a -O optimization flag, default to -O3
+ifeq ($(findstring -O,$(CFLAGS)),)
104
+CFLAGS_add += -O3
105
+endif
106
107
ifneq (,$(findstring MINGW,$(OS)))
108
override OS=WINNT
0 commit comments