From: Dan Nicholson Date: Thu, 1 Jul 2010 19:58:57 +0000 (-0700) Subject: Use GLW_CFLAGS when building libGLw X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=442c37e2ef57d8dcf88c91d457df7f6516d76264;p=mesa.git Use GLW_CFLAGS when building libGLw We check for libX11 and libXt, so we might as well use the CFLAGS pkg-config tells us about. --- diff --git a/configs/autoconf.in b/configs/autoconf.in index 4a86dc1bb5c..78fa0af6cc1 100644 --- a/configs/autoconf.in +++ b/configs/autoconf.in @@ -31,6 +31,7 @@ X11_CFLAGS = @X11_CFLAGS@ LLVM_CFLAGS = @LLVM_CFLAGS@ LLVM_LDFLAGS = @LLVM_LDFLAGS@ LLVM_LIBS = @LLVM_LIBS@ +GLW_CFLAGS = @GLW_CFLAGS@ GLUT_CFLAGS = @GLUT_CFLAGS@ diff --git a/src/glw/Makefile b/src/glw/Makefile index 1fb3d3c3202..39352f05320 100644 --- a/src/glw/Makefile +++ b/src/glw/Makefile @@ -17,7 +17,7 @@ OBJECTS = $(GLW_SOURCES:.c=.o) ##### RULES ##### .c.o: - $(CC) -c $(INCDIRS) $(CFLAGS) $< + $(CC) -c $(INCDIRS) $(CFLAGS) $(GLW_CFLAGS) $<