[gnuplot] 04/07: Simplify debian/rules.

Anton Gladky gladk at alioth.debian.org
Sat Oct 12 18:59:16 UTC 2013


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

gladk pushed a commit to branch master
in repository gnuplot.

commit e4ff4028fbb6fd8ebe47dc9d7cfca6df83677a0c
Author: Anton Gladky <gladk at debian.org>
Date:   Sat Oct 12 20:26:12 2013 +0200

    Simplify debian/rules.
---
 debian/rules |   18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

diff --git a/debian/rules b/debian/rules
index 35e4ef8..15463ef 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,30 +4,16 @@
 	dh $@ --parallel --with autoreconf
 
 export DEB_BUILD_MAINT_OPTIONS := hardening=+all
-
-CFLAGS := -Wall $(shell dpkg-buildflags --get CFLAGS)
-CXXFLAGS := -Wall $(shell dpkg-buildflags --get CXXFLAGS)
-CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
-LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
-
-# Build structure may link against unneeded libs.
-# Make sure this does not happen.
-LDFLAGS            += -Wl,--as-needed
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
 # Tell compiler where should find lua headers
-CFLAGS += -I/usr/include/lua5.1
+export DEB_CFLAGS_MAINT_APPEND = -I/usr/include/lua5.1
 
 BUILDDIR_NOX = $(CURDIR)/debian/build-nox
 BUILDDIR_X11 = $(CURDIR)/debian/build-x11
 BUILDDIR_QT = $(CURDIR)/debian/build-qt
 
 conf_opts += \
-	CFLAGS="$(CFLAGS)" \
-	CXXFLAGS="$(CXXFLAGS)" \
-	CPPFLAGS="$(CPPFLAGS)" \
-	LDFLAGS="$(LDFLAGS)" \
-	--host=$(DEB_HOST_GNU_TYPE) \
-	--build=$(DEB_BUILD_GNU_TYPE) \
 	--prefix=/usr \
 	--mandir=\$${prefix}/share/man \
 	--infodir=\$${prefix}/share/info \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/gnuplot.git



More information about the debian-science-commits mailing list