From b3b74e69d9e96feb736c5f19e75d6ec70c857ee3 Mon Sep 17 00:00:00 2001 From: Carlos Maddela Date: Thu, 21 Dec 2017 03:04:59 +1100 Subject: [PATCH] Honour LDFLAGS set by dpkg-buildflags in building all binaries. Unpackaged simple-md5sum utility must do so as well, to keep blhc happy. --- debian/changelog | 1 + debian/patches/33-honour-LDFLAGS.patch | 28 ++++++++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 30 insertions(+) create mode 100644 debian/patches/33-honour-LDFLAGS.patch diff --git a/debian/changelog b/debian/changelog index 0bb49cf..08a13d8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,6 +14,7 @@ dvdisaster (0.79.5-4) UNRELEASED; urgency=medium * Remove unnecessary Testsuite header from debian/control. * Indicate compliance with Debian Policy 4.1.2. * Suppress debian-watch-uses-insecure-uri Lintian warning. + * Honour LDFLAGS set by dpkg-buildflags in building all binaries. -- Carlos Maddela Mon, 14 Aug 2017 23:04:38 +1000 diff --git a/debian/patches/33-honour-LDFLAGS.patch b/debian/patches/33-honour-LDFLAGS.patch new file mode 100644 index 0000000..029958f --- /dev/null +++ b/debian/patches/33-honour-LDFLAGS.patch @@ -0,0 +1,28 @@ +From: Carlos Maddela +Date: Thu, 21 Dec 2017 02:44:53 +1100 +Subject: Honour LDFLAGS set by dpkg-buildflags in building all binaries. + +Description: Honour LDFLAGS set by dpkg-buildflags in building all binaries. + Unpackaged simple-md5sum utility must do so as well, to keep blhc happy. +Author: Carlos Maddela +Forwarded: no +Last-Update: 2017-12-21 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- + GNUmakefile.template | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/GNUmakefile.template b/GNUmakefile.template +index ac1f597..4509c48 100644 +--- a/GNUmakefile.template ++++ b/GNUmakefile.template +@@ -138,7 +138,7 @@ untranslated: + $(MAKE) --no-print-directory -C locale check-untranslated + + simple-md5sum: md5.c +- $(CC) $(COPTS) $(MUDFLAP_CFLAGS) -DSIMPLE_MD5SUM md5.c $(MUDFLAP_LFLAGS) $(MUDFLAP_LIBS) -o simple-md5sum ++ $(CC) $(COPTS) $(MUDFLAP_CFLAGS) -DSIMPLE_MD5SUM md5.c $(LDFLAGS) $(MUDFLAP_LFLAGS) $(MUDFLAP_LIBS) -o simple-md5sum + + version.tex: + @echo "\\newcommand{\\projectversion}{$(VERSION)}" >$(SRCDIR)/documentation/config/version.tex diff --git a/debian/patches/series b/debian/patches/series index 8136eba..1fa90f6 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -24,3 +24,4 @@ 30-hurd-kfreebsd-ftbfs.patch 31-improve-hurd-and-kfreebsd-support.patch 32-display-compilation-commands.patch +33-honour-LDFLAGS.patch