summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicholson <[email protected]>2010-07-01 12:58:57 -0700
committerDan Nicholson <[email protected]>2010-07-01 13:00:02 -0700
commit442c37e2ef57d8dcf88c91d457df7f6516d76264 (patch)
tree611718df956e87ed64f844f185adb314be66f6e7
parent9617254a1e5522615c96ab25c9e0a70e0d63d7e7 (diff)
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.
-rw-r--r--configs/autoconf.in1
-rw-r--r--src/glw/Makefile2
2 files changed, 2 insertions, 1 deletions
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) $<