[libmath-gsl-perl] 01/02: Add patch to inject -fPIC in the build
Niko Tyni
ntyni at moszumanska.debian.org
Thu Jun 2 20:37:10 UTC 2016
This is an automated email from the git hooks/post-receive script.
ntyni pushed a commit to branch master
in repository libmath-gsl-perl.
commit 878c8e80d10d01b2160f0b478a83573e514b7657
Author: Niko Tyni <ntyni at debian.org>
Date: Thu Jun 2 23:06:37 2016 +0300
Add patch to inject -fPIC in the build
Thanks to Jurica Stanojkovic.
Closes: #826009
---
.../0003-Use-Config-cccdlflags-in-the-build.patch | 36 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 37 insertions(+)
diff --git a/debian/patches/0003-Use-Config-cccdlflags-in-the-build.patch b/debian/patches/0003-Use-Config-cccdlflags-in-the-build.patch
new file mode 100644
index 0000000..b321c15
--- /dev/null
+++ b/debian/patches/0003-Use-Config-cccdlflags-in-the-build.patch
@@ -0,0 +1,36 @@
+From 5aeb4938b7e34c124f44297d447b8efbc412c02f Mon Sep 17 00:00:00 2001
+From: Niko Tyni <ntyni at debian.org>
+Date: Thu, 2 Jun 2016 22:56:25 +0300
+Subject: [PATCH] Use $Config{cccdlflags} in the build
+
+This properly injects -fPIC on all Debian architectures, fixing link
+failures on at least mips*.
+
+The earlier explicit injection of -fPIC on amd64 becomes redundant with
+this but shouldn't harm.
+
+It looks like inc/GSLBuilder.pm tries to use cccdlflags, but doesn't
+get them in $cf from Module::Build. This may be because the copy-pasted
+compile_c() method has since been rewritten in Module::Build to use
+ExtUtils::CBuilder, and the interface may have changed.
+
+Bug-Debian: https://bugs.debian.org/826009
+---
+ Build.PL | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Build.PL b/Build.PL
+index 7c3940a..5bc1e42 100644
+--- a/Build.PL
++++ b/Build.PL
+@@ -73,6 +73,7 @@ if ($Config{archname} =~ /x86_64|amd64/ ) {
+ $ldflags .= ' -fPIC -fno-omit-frame-pointer ';
+ $ccflags .= ' -fPIC -fno-omit-frame-pointer ';
+ }
++$ccflags = $Config{cccdlflags} . ' ' . $ldflags;
+
+ my @Subsystems = grep { ! /^Test$/ } GSLBuilder::subsystems();
+
+--
+2.8.1
+
diff --git a/debian/patches/series b/debian/patches/series
index 168722e..27dfd07 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
0001-Hardening-Build-Patch.patch
0002-Fixed-spelling-errors-in-man.patch
+0003-Use-Config-cccdlflags-in-the-build.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmath-gsl-perl.git
More information about the Pkg-perl-cvs-commits
mailing list