From c80c917d376a5ab32db2afe8bed32a6d116b2eeb Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Sun, 22 Sep 2013 09:49:01 -0500 Subject: [PATCH] wmtime - Fix compiler and linker flags in Makefile. The Makefile of wmtime had to be patched in order for CFLAGS not to be redefined by the Makefile but to use the CFLAGS passed by debhelper and add additional flags through string concatenation. LDFLAGS and CPPFLAGS weren't passed at all and have been added to the linker command line. Patch by John Paul Adrian Glaubitz , from Debian package. --- wmtime/wmtime/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wmtime/wmtime/Makefile b/wmtime/wmtime/Makefile index 26b8571..a1c3c58 100755 --- a/wmtime/wmtime/Makefile +++ b/wmtime/wmtime/Makefile @@ -7,13 +7,13 @@ OBJS = wmtime.o \ XPMS = wmtime-master.xpm wmtime-mask.xbm CC = gcc -CFLAGS = -O2 +CFLAGS += -O2 .c.o: - $(CC) $(CFLAGS) -c -Wall $< -o $*.o + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -c -Wall $< -o $*.o wmtime: $(OBJS) $(XPMS) - $(CC) $(CFLAGS) -o wmtime $(OBJS) $(LIBDIR) $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o wmtime $(OBJS) $(LIBDIR) $(LIBS) clean:: for i in $(OBJS) ; do \ -- 2.11.4.GIT