[Pkg-wmaker-commits] [wmbubble] 173/207: Rewrite debian/patches/fix-compiler-flags.patch for new Makefile.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:18:29 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 da6341ced13576971ed9d7fdd5f0d6528fb22653
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Mon Jul 28 18:14:06 2014 -0500

    Rewrite debian/patches/fix-compiler-flags.patch for new Makefile.
---
 debian/patches/fix-compiler-flags.patch | 27 +++++++++++++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 28 insertions(+)

diff --git a/debian/patches/fix-compiler-flags.patch b/debian/patches/fix-compiler-flags.patch
new file mode 100644
index 0000000..53702b3
--- /dev/null
+++ b/debian/patches/fix-compiler-flags.patch
@@ -0,0 +1,27 @@
+Description: Fix compiler flags
+ Fix Makefile so that CFLAGS is not overwritten. Compile with
+ CPPFLAGS and LDFLAGS.
+
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2014-07-28
+
+--- a/Makefile
++++ b/Makefile
+@@ -12,7 +12,7 @@
+ # 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 @@
+ all: wmbubble
+ 
+ wmbubble: $(OBJS)
+-	$(CC) $(CFLAGS) -o wmbubble $(OBJS) $(LIBS)
++	$(CC) $(CFLAGS) $(CPPFLAGS) $(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 \
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ddac0dd
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-compiler-flags.patch

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