[med-svn] [nanopolish] 04/07: d/rules: don't override upstream optimization flags and move Steffen's -flto

Afif Elghraoui afif at moszumanska.debian.org
Sat Nov 11 06:01:52 UTC 2017


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

afif pushed a commit to branch master
in repository nanopolish.

commit b26fe80f89857b6f314324e488967fb3e82200f1
Author: Afif Elghraoui <afif at debian.org>
Date:   Sat Nov 11 00:29:22 2017 -0500

    d/rules: don't override upstream optimization flags and move Steffen's -flto
---
 debian/rules | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 90731c5..1fb7349 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,11 +6,13 @@ include /usr/share/dpkg/default.mk
 export DEB_CPPFLAGS_MAINT_APPEND= \
  -I/usr/include/hdf5/serial \
  -I/usr/include/eigen3
+# dpkg-buildpackage would otherwise set -O2, overriding upstream's -O3
+# Note: ask Steffen why he chose to add -flto for this package.
+export DEB_CFLAGS_MAINT_APPEND = -O3 -flto
+export DEB_CXXFLAGS_MAINT_APPEND = -O3 -flto
 export DEB_LDFLAGS_MAINT_APPEND = -L/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
-export CXXFLAGS += -flto
-
 # These variables just need to be defined as anything but "install" in order
 # to use system versions.
 export HDF5=external

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/nanopolish.git



More information about the debian-med-commit mailing list