]> git.cworth.org Git - glaze/commitdiff
Makefile: Fix to enable compiler warnings
authorCarl Worth <cworth@cworth.org>
Tue, 20 Aug 2013 23:11:31 +0000 (16:11 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 20 Aug 2013 23:11:31 +0000 (16:11 -0700)
The configure script was carefully detecting available warning options, but
the Makefile was neglecting to actually use them when compiling.

Fix so that we get useful warning messages.

Makefile

index 069192afe1f76bb048cdb858b8c23c0becfa69d6..02465438e283872f5d114a419cc9401ba0b23ca3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -28,16 +28,18 @@ TARGETS = $(LIBGLAZE_LIBNAME) lib64/libGL.so.1 lib32/libGL.so.1
 
 all: $(TARGETS)
 
+GLAZE_CFLAGS = $(CFLAGS) $(WARN_CFLAGS)
+
 $(LIBGLAZE_LIBNAME): glaze.c
-       $(CC) $(CFLAGS) -fPIC -shared -Wl,-Bsymbolic,-soname=$(LIBGLAZE_SONAME) -o $@ $<
+       $(CC) $(GLAZE_CFLAGS) -fPIC -shared -Wl,-Bsymbolic,-soname=$(LIBGLAZE_SONAME) -ldl -o $@ $<
 
 lib64/libGL.so.1: glaze-gl.c glapi.def
        mkdir -p lib64
-       $(CC) $(CFLAGS) -m64 -fPIC -shared -Wl,-Bsymbolic -o $@ $<
+       $(CC) $(GLAZE_CFLAGS) -m64 -fPIC -shared -Wl,-Bsymbolic -o $@ $<
 
 lib32/libGL.so.1: glaze-gl.c specs/gl.def
        mkdir -p lib32
-       $(CC) $(CFLAGS) -m32 -fPIC -shared -Wl,-Bsymbolic -o $@ $<
+       $(CC) $(GLAZE_CFLAGS) -m32 -fPIC -shared -Wl,-Bsymbolic -o $@ $<
 
 .PHONY: install
 install: all