autoconf: don't use CFLAGS for cpp files
authorTobias Droste <tdroste@gmx.de>
Wed, 16 Mar 2011 17:45:29 +0000 (18:45 +0100)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 16 Mar 2011 20:54:50 +0000 (13:54 -0700)
Signed-off-by: Tobias Droste <tdroste@gmx.de>
src/glsl/Makefile
src/mesa/Makefile

index cd7c41a2abc065b74848e8543d2451b8db3a38c8..e4b992dbc112ce0fb719541e5ca21c634a97210c 100644 (file)
@@ -204,7 +204,7 @@ glcpp/glcpp-parse.c: glcpp/glcpp-parse.y
        bison -v -o "$@" --defines=glcpp/glcpp-parse.h $<
 
 builtin_compiler: $(GLSL2_OBJECTS) $(OBJECTS) builtin_stubs.o
-       $(APP_CXX) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $(OBJECTS) $(GLSL2_OBJECTS) builtin_stubs.o -o $@
+       $(APP_CXX) $(INCLUDES) $(CXXFLAGS) $(LDFLAGS) $(OBJECTS) $(GLSL2_OBJECTS) builtin_stubs.o -o $@
 
 builtin_function.cpp: builtins/profiles/* builtins/ir/* builtins/tools/generate_builtins.py builtins/tools/texture_builtins.py builtin_compiler
        @echo Regenerating builtin_function.cpp...
index 10d73f000e320ad988ac326a7b3b2517e4b3507a..03962e9c1942a8f1c933b0b09200e976debd0961 100644 (file)
@@ -43,7 +43,7 @@ endef
 
 define mesa-cxx-c
        @mkdir -p $(dir $@)
-       $(CXX) -c -o $@ $< $($(1)_CPPFLAGS) $($(1)_CFLAGS) $($(1)_CXXFLAGS)
+       $(CXX) -c -o $@ $< $($(1)_CPPFLAGS) $($(1)_CXXFLAGS)
 endef
 
 $(MESA_OBJ_DIR)/%.o: %.c