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

View file

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