[flint-arb] 03/05: Add patch from Logan Rosen to fix FTBFS with PIE (Closes: #837454)

Julien Puydt julien.puydt at laposte.net
Fri Oct 28 16:06:10 UTC 2016


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

jpuydt-guest pushed a commit to branch master
in repository flint-arb.

commit 7d4a21f7d736421e39081661619bfc39860ae382
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Fri Oct 28 13:41:32 2016 +0200

    Add patch from Logan Rosen to fix FTBFS with PIE (Closes: #837454)
---
 debian/changelog               |  6 ++++++
 debian/patches/PIE-FTBFS.patch | 17 +++++++++++++++++
 debian/patches/series          |  1 +
 3 files changed, 24 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 3efcdd5..008ce43 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+flint-arb (2.8.1-3) UNRELEASED; urgency=medium
+
+  * Add a patch from Logan Rosen to fix FTBFS with PIE. (Closes: #837454)
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Fri, 28 Oct 2016 13:39:57 +0200
+
 flint-arb (2.8.1-2) unstable; urgency=medium
 
   [ Tobias Hansen ]
diff --git a/debian/patches/PIE-FTBFS.patch b/debian/patches/PIE-FTBFS.patch
new file mode 100644
index 0000000..b2db6b2
--- /dev/null
+++ b/debian/patches/PIE-FTBFS.patch
@@ -0,0 +1,17 @@
+Description: Use -r instead of -Wl,-r to fix FTBFS with PIE enabled
+Author: Logan Rosen
+Forwarded: yes
+
+diff --git a/Makefile.subdirs b/Makefile.subdirs
+index 3dc757d..f0ec923 100644
+--- a/Makefile.subdirs
++++ b/Makefile.subdirs
+@@ -52,7 +52,7 @@ $(BUILD_DIR)/$(MOD_DIR)_%.o: %.c
+ 	$(QUIET_CC) $(CC) $(CFLAGS) $(INCS) -c $< -o $@ -MMD -MP -MF "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$(BUILD_DIR)/$(MOD_DIR)_$*.d" -MT "$@"
+ 
+ $(MOD_LOBJ): $(LOBJS)
+-	$(QUIET_CC) $(CC) $(ABI_FLAG) -Wl,-r $^ -o $@ -nostdlib
++	$(QUIET_CC) $(CC) $(ABI_FLAG) -r $^ -o $@ -nostdlib
+ 
+ -include $(LOBJS:.lo=.d)
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 9a2cc11..98af967 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 flint_includes.patch
+PIE-FTBFS.patch

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



More information about the debian-science-commits mailing list