summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2020-01-16 12:20:19 +0100
committerAllan McRae <allan@archlinux.org>2020-01-27 08:53:50 +0100
commit2e32d51a262fef398a94a17c0a0d4ff3233990b5 (patch)
tree12e7ee2c812ac1662f80bad411779e3f4ae79438
parent75bf8e887cd9fe0f6ba1eb2b6554dbfbcda0294a (diff)
downloadpacman-2e32d51a262fef398a94a17c0a0d4ff3233990b5.tar.gz
pacman-2e32d51a262fef398a94a17c0a0d4ff3233990b5.tar.xz
Remove unneeded ltmain patch
Many moons ago, libtool was bad - I mean worse than today! It gobbled all --as-needed and we ended up with an overlinked libalpm. This was annoying, particularly when dealing with soname bumps in libraries pacman/libalpm had no business linking to. Luckily we had a fix, stolen from GNOME I believe. And with that fix, we lived in harmony with libtool for many years. Until one day, unbeknownst to us, libtool was "fixed". We kept applying our patch, because it still applied, but it did worse than nothing. It gobbled up our other LDFLAGS, and our libalpm started missing out on RELRO and BIND_NOW. This made the Arch Security Team unhappy. We will make them happy again by stopping the patch. Signed-off-by: Allan McRae <allan@archlinux.org>
-rwxr-xr-xautogen.sh6
-rw-r--r--build-aux/ltmain-asneeded.patch33
2 files changed, 0 insertions, 39 deletions
diff --git a/autogen.sh b/autogen.sh
deleted file mode 100755
index 18fa641d..00000000
--- a/autogen.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh -x
-
-autoreconf -i
-patch -d build-aux -Np0 -i ltmain-asneeded.patch
-
-exit 0
diff --git a/build-aux/ltmain-asneeded.patch b/build-aux/ltmain-asneeded.patch
deleted file mode 100644
index af5ae6b2..00000000
--- a/build-aux/ltmain-asneeded.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- ltmain.sh.orig 2013-06-26 14:31:53.472627840 +1000
-+++ ltmain.sh 2013-06-26 14:30:56.137038936 +1000
-@@ -5800,6 +5800,14 @@
- arg=$func_stripname_result
- ;;
-
-+ -Wl,*--as-needed*)
-+ deplibs="$deplibs $wl--as-needed"
-+ ;;
-+
-+ -Wl,*--no-as-needed*)
-+ deplibs="$deplibs $wl--no-as-needed"
-+ ;;
-+
- -Wl,*)
- func_stripname '-Wl,' '' "$arg"
- args=$func_stripname_result
-@@ -6160,6 +6168,15 @@
- lib=
- found=no
- case $deplib in
-+ -Wl,--as-needed|-Wl,--no-as-needed)
-+ if test "$linkmode,$pass" = "prog,link"; then
-+ compile_deplibs="$deplib $compile_deplibs"
-+ finalize_deplibs="$deplib $finalize_deplibs"
-+ else
-+ deplibs="$deplib $deplibs"
-+ fi
-+ continue
-+ ;;
- -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
- |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
- if test "$linkmode,$pass" = "prog,link"; then