diff --git a/Makefile.common b/Makefile.common index a524f0b9f19..9f0c523735a 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 a524f0b9f19..9f0c523735a 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