[limereg] 23/33: d/rules: clean up compiler flags definitions

Mattia Rizzolo mattia at debian.org
Wed May 3 16:39:36 UTC 2017


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

mattia pushed a commit to branch master
in repository limereg.

commit 73f2d1e12b718f91b0cbf04777179a3d299d57ec
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Mon Apr 24 20:23:38 2017 +0200

    d/rules: clean up compiler flags definitions
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 debian/rules | 34 ++++------------------------------
 1 file changed, 4 insertions(+), 30 deletions(-)

diff --git a/debian/rules b/debian/rules
index b6eb59b..f31b884 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,41 +1,15 @@
 #!/usr/bin/make -f
-# See debhelper(7) (uncomment to enable)
-# output every command that modifies files on the build system.
-#DH_VERBOSE = 1
-
-# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
-DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/default.mk
-
-CFLAGS := $(filter-out -O2,$(CFLAGS))
-#CFLAGS+=-Ofast -flto
-CFLAGS+=-Ofast -fstack-protector
-
-CXXFLAGS := $(filter-out -O2,$(CXXFLAGS))
-#CXXFLAGS+=-Ofast -flto
-CXXFLAGS+=-Ofast -fstack-protector
-
-#LDFLAGS+=-flto
-
-# see FEATURE AREAS in dpkg-buildflags(1)
-#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 # see ENVIRONMENT in dpkg-buildflags(1)
-# package maintainers to append CFLAGS
-#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
-# package maintainers to append LDFLAGS
-#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+export DEB_CFLAGS_MAINT_STRIP = -O2
+export DEB_CFLAGS_MAINT_APPEND = -Ofast -fstack-protector
 
+export DEB_CXXFLAGS_MAINT_STRIP = -O2
+export DEB_CXXFLAGS_MAINT_APPEND = -Ofast -fstack-protector
 
-# main packaging script based on dh7 syntax
 %:
 	dh $@ 
 
-# debmake generated override targets
-#override_dh_auto_configure:
-#	dh_auto_configure -- \
-#	CFLAGS="-Ofast" CXXFLAGS="-Ofast"
- 
 override_dh_install:
 	sed -i 's/^.TH .*/.TH "liblimereg" 3 "October 2016" "liblimereg-1.4.1" \\" -*- nroff -*-/' debian/tmp/usr/share/man/man3/liblimereg.3
 	sed -i 's/^.TH .*/.TH "limereg.h" 3 "October 2016" "liblimereg-1.4.1" \\" -*- nroff -*-/' debian/tmp/usr/share/man/man3/limereg.h.3

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



More information about the debian-science-commits mailing list