[Pkg-wmaker-commits] [wmbubble] 176/207: Fix compiler flags.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:18:30 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbubble.

commit a82afed5324243f1bd338907304f3fa74beeacf9
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sat Nov 29 00:24:46 2014 -0600

    Fix compiler flags.
    
    In particular, do not overwrite CFLAGS and use LDFLAGS instead of CFLAGS during
    linking.
    
    Based on the Debian patch:
    http://sources.debian.net/src/wmbubble/1.51-1/debian/patches/fix-compiler-flags.patch/
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index fe52e4d..fbb1d69 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ PREFIX = /usr/local
 # default build flags
 # CFLAGS = -ansi -Wall -ggdb
 # optimization cflags
-CFLAGS = -ansi -Wall -O3
+CFLAGS += -ansi -Wall -O3
 # profiling cflags
 # CFLAGS = -ansi -Wall -O3 -pg -DPRO=50000
 # test coverage cflags
@@ -77,7 +77,7 @@ endif
 all: wmbubble
 
 wmbubble: $(OBJS)
-	$(CC) $(CFLAGS) -o wmbubble $(OBJS) $(LIBS)
+	$(CC) $(LDFLAGS) -o wmbubble $(OBJS) $(LIBS)
 
 bubblemon.o: bubblemon.c wmx11pixmap.h include/bubblemon.h \
  include/sys_include.h include/numbers-2.h include/ducks.h \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbubble.git



More information about the Pkg-wmaker-commits mailing list