Don't pass CXXFLAGS to the compiler when compiling .c files

Originally committed to SVN as r5511.
This commit is contained in:
Thomas Goyne 2011-07-26 22:24:26 +00:00
parent 263d161d26
commit e92d6f6f65
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ endif
.SUFFIXES: .o .c .cpp .cxx .SUFFIXES: .o .c .cpp .cxx
%.o: %.c %.o: %.c
$(CXX_ENV) $(BIN_CC) $(CFLAGS_DEP) $(CFLAGS) $(CXXFLAGS) -c -o $@ $< $(CXX_ENV) $(BIN_CC) $(CFLAGS_DEP) $(CFLAGS) -c -o $@ $<
%.o: %.cpp %.o: %.cpp
$(CXX_ENV) $(BIN_CXX) $(CFLAGS_DEP) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< $(CXX_ENV) $(BIN_CXX) $(CFLAGS_DEP) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<