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.
This commit is contained in:
Dan Nicholson
2010-07-01 12:58:57 -07:00
parent 9617254a1e
commit 442c37e2ef
2 changed files with 2 additions and 1 deletions

View File

@@ -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@

View File

@@ -17,7 +17,7 @@ OBJECTS = $(GLW_SOURCES:.c=.o)
##### RULES #####
.c.o:
$(CC) -c $(INCDIRS) $(CFLAGS) $<
$(CC) -c $(INCDIRS) $(CFLAGS) $(GLW_CFLAGS) $<