aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.file-metadatabin6221 -> 6106 bytes
-rw-r--r--reproduce/software/config/installation/versions.mk2
-rw-r--r--reproduce/software/make/basic.mk8
3 files changed, 8 insertions, 2 deletions
diff --git a/.file-metadata b/.file-metadata
index 4e32000..1954e94 100644
--- a/.file-metadata
+++ b/.file-metadata
Binary files differ
diff --git a/reproduce/software/config/installation/versions.mk b/reproduce/software/config/installation/versions.mk
index 80d9619..14c43d1 100644
--- a/reproduce/software/config/installation/versions.mk
+++ b/reproduce/software/config/installation/versions.mk
@@ -47,7 +47,7 @@ mpfr-version = 4.0.2
mpc-version = 1.1.0
ncurses-version = 6.1
openssl-version = 1.1.1a
-patchelf-version = 0.9
+patchelf-version = 0.10
pkgconfig-version = 0.29.2
readline-version = 8.0
sed-version = 4.7
diff --git a/reproduce/software/make/basic.mk b/reproduce/software/make/basic.mk
index 5535019..e544234 100644
--- a/reproduce/software/make/basic.mk
+++ b/reproduce/software/make/basic.mk
@@ -519,8 +519,14 @@ $(ibidir)/readline: $(tdir)/readline-$(readline-version).tar.gz \
SHLIB_LIBS="-lncursesw" -j$(numthreads)) \
&& echo "GNU Readline $(readline-version)" > $@
+# Patchelf has to be built statically because it links with the C++
+# standard library. Therefore while fixing rpath in `libstdc++' with
+# Patchelf we can have a segmentation fault. Note that Patchelf is only for
+# GNU/Linux systems, so there is no problem with having the `-static' flag
+# in LDFLAGS.
$(ibidir)/patchelf: $(tdir)/patchelf-$(patchelf-version).tar.gz \
$(ibidir)/make
+ export LDFLAGS="$$LDFLAGS -static"; \
$(call gbuild, $<, patchelf-$(patchelf-version), static) \
&& echo "PatchELF $(patchelf-version)" > $@
@@ -1153,7 +1159,7 @@ $(ibidir)/gcc: $(gcc-tarball) \
&& cd ../.. \
&& rm -rf gcc-$(gcc-version) \
&& if [ "x$(on_mac_os)" != xyes ]; then \
- for f in $$(find $(idir)/libexec/gcc) $(ildir)/libstdc++**; do \
+ for f in $$(find $(idir)/libexec/gcc) $(ildir)/libstdc++*; do \
if ldd $$f &> /dev/null; then \
patchelf --set-rpath $(ildir) $$f; \
fi; \