summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.common2
-rw-r--r--Makefile.rules2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common
index a524f0b9f1..9f0c523735 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -361,7 +361,7 @@ CompileOptimizeOpts := -O3 -DNDEBUG -finline-functions -fshort-enums
# Compile commands with libtool.
#
Compile := $(LIBTOOL) --mode=compile $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $(CompileCommonOpts)
-CompileC := $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CCFLAGS) $(CompileCommonOpts)
+CompileC := $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(CompileCommonOpts)
# Compile a cpp file, don't link...
CompileG := $(Compile) -g -D_DEBUG
diff --git a/Makefile.rules b/Makefile.rules
index a524f0b9f1..9f0c523735 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -361,7 +361,7 @@ CompileOptimizeOpts := -O3 -DNDEBUG -finline-functions -fshort-enums
# Compile commands with libtool.
#
Compile := $(LIBTOOL) --mode=compile $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $(CompileCommonOpts)
-CompileC := $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CCFLAGS) $(CompileCommonOpts)
+CompileC := $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(CompileCommonOpts)
# Compile a cpp file, don't link...
CompileG := $(Compile) -g -D_DEBUG