[pdl] 04/04: Add patch to use LDFLAGS for pdl executable.

Bas Couwenberg sebastic at debian.org
Sat Jun 18 21:39:39 UTC 2016


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

sebastic pushed a commit to branch master
in repository pdl.

commit 329a50b19b5c6f22b7ad2dc83c653714c8c53799
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Jun 18 22:56:05 2016 +0200

    Add patch to use LDFLAGS for pdl executable.
---
 debian/changelog                 |  1 +
 debian/patches/pdl-ldflags.patch | 15 +++++++++++++++
 debian/patches/series            |  1 +
 3 files changed, 17 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 397344e..b8e1f68 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ pdl (1:2.016-1~exp3) UNRELEASED; urgency=medium
   * Disable generation of documentation as part of the build.
     The documentation is generated on installation via postinst.
   * Add patch to fix manpage-has-bad-whatis-entry lintian issue.
+  * Add patch to use LDFLAGS for pdl executable.
 
  -- Bas Couwenberg <sebastic at debian.org>  Sat, 18 Jun 2016 20:33:30 +0200
 
diff --git a/debian/patches/pdl-ldflags.patch b/debian/patches/pdl-ldflags.patch
new file mode 100644
index 0000000..4c79388
--- /dev/null
+++ b/debian/patches/pdl-ldflags.patch
@@ -0,0 +1,15 @@
+Description: Use LDFLAGS for pdl executable.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: not-needed
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -583,7 +583,7 @@ EOPS
+ # support the `$<` variable in explicit rules
+ $text .= <<EOT if $^O !~ /MSWin/;
+ pdl$Config::Config{exe_ext} : pdl.c
+-	\$(CC) \$(CFLAGS) \$(CPPFLAGS) pdl.c -o \$\@
++	\$(CC) \$(CFLAGS) \$(CPPFLAGS) \$(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --get LDFLAGS) pdl.c -o \$\@
+ EOT
+ 
+ $text .= << 'EOT' if $^O =~ /MSWin/;
diff --git a/debian/patches/series b/debian/patches/series
index 1fb1ecb..7a193f1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@ slatec_default_integer_8.patch
 minuit_default_integer_8.patch
 disable-doc-install.patch
 manpage-has-bad-whatis-entry.patch
+pdl-ldflags.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pdl.git



More information about the Pkg-perl-cvs-commits mailing list