diff options
author | Sébastien Fabbro <bicatali@gentoo.org> | 2017-07-28 21:41:41 +0000 |
---|---|---|
committer | Sébastien Fabbro <bicatali@gentoo.org> | 2017-07-28 21:42:01 +0000 |
commit | 2c3bf701dff1c57800b8e2ada20559049714aef2 (patch) | |
tree | 85559accdf8a8be669e0ea89bce9f0c4031540f5 /sci-mathematics/arb/files | |
parent | dev-python/ipython: added sphinxcontrib_websupport dependency for documentation (diff) | |
download | gentoo-2c3bf701dff1c57800b8e2ada20559049714aef2.tar.gz gentoo-2c3bf701dff1c57800b8e2ada20559049714aef2.tar.bz2 gentoo-2c3bf701dff1c57800b8e2ada20559049714aef2.zip |
sci-mathematics/arb: fixed for linking with PIE
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'sci-mathematics/arb/files')
-rw-r--r-- | sci-mathematics/arb/files/arb-2.11.1-pie-ftbs.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sci-mathematics/arb/files/arb-2.11.1-pie-ftbs.patch b/sci-mathematics/arb/files/arb-2.11.1-pie-ftbs.patch new file mode 100644 index 000000000000..b2db6b2a294c --- /dev/null +++ b/sci-mathematics/arb/files/arb-2.11.1-pie-ftbs.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) + |