[cliquer] 06/11: Add patch to make the makefile inherit the build flags from the environment
Mattia Rizzolo
mattia at debian.org
Wed Nov 22 10:34:50 UTC 2017
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository cliquer.
commit 6719f4b00e10e80f5597174da81b1ee4ef38245f
Author: Mattia Rizzolo <mattia at debian.org>
Date: Wed Nov 22 11:22:50 2017 +0100
Add patch to make the makefile inherit the build flags from the environment
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
...-inherit-build-flags-from-the-environment.patch | 31 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 32 insertions(+)
diff --git a/debian/patches/0006-inherit-build-flags-from-the-environment.patch b/debian/patches/0006-inherit-build-flags-from-the-environment.patch
new file mode 100644
index 0000000..ac84368
--- /dev/null
+++ b/debian/patches/0006-inherit-build-flags-from-the-environment.patch
@@ -0,0 +1,31 @@
+From: Mattia Rizzolo <mattia at debian.org>
+Date: Wed, 22 Nov 2017 11:21:25 +0100
+Subject: inherit build flags from the environment
+
+Signed-off-by: Mattia Rizzolo <mattia at debian.org>
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index b60e992..90a18e6 100644
+--- a/Makefile
++++ b/Makefile
+@@ -8,7 +8,7 @@ CC=gcc
+ ## Compiler flags:
+
+ # GCC: (also -march=pentium etc, for machine-dependent optimizing)
+-CFLAGS=-Wall -O3 -fomit-frame-pointer -funroll-loops
++CFLAGS += -Wall -O3 -fomit-frame-pointer -funroll-loops
+
+ # GCC w/ debugging:
+ #CFLAGS=-Wall -g -DINLINE=
+@@ -27,7 +27,7 @@ SHCFLAGS = -fPIC -fvisibility=hidden
+ #SHLDFLAGS = --shared -Wl,--soname=$(SONAME) -Wl,--version-script=libcliquer.map
+ #SHCFLAGS = -fPIC
+
+-CPPFLAGS =
++CPPFLAGS +=
+
+ ## Program options:
+
diff --git a/debian/patches/series b/debian/patches/series
index 82bc607..f7bb131 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
0003-rename-cl-binary-to-cliquer.patch
0004-more-usual-flags-usage.patch
0005-add-install-target.patch
+0006-inherit-build-flags-from-the-environment.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cliquer.git
More information about the debian-science-commits
mailing list