summaryrefslogtreecommitdiff
path: root/sys-devel/libtool/files/libtool-2.4.6-pthread_bootstrapped.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-12-24 15:36:46 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-12-24 15:36:46 +0000
commit2a15bb4c21792825ebc98028bbcfff4bb76230eb (patch)
tree78d658bfc8a6fa5463435afbe598bd3847a26be0 /sys-devel/libtool/files/libtool-2.4.6-pthread_bootstrapped.patch
parent7e363b923a5933e24521c24eafc75492fa4f5826 (diff)
import the toolchain from gentoo tree, increase revisions so they cannot beat us
Diffstat (limited to 'sys-devel/libtool/files/libtool-2.4.6-pthread_bootstrapped.patch')
-rw-r--r--sys-devel/libtool/files/libtool-2.4.6-pthread_bootstrapped.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys-devel/libtool/files/libtool-2.4.6-pthread_bootstrapped.patch b/sys-devel/libtool/files/libtool-2.4.6-pthread_bootstrapped.patch
new file mode 100644
index 00000000..54461ccc
--- /dev/null
+++ b/sys-devel/libtool/files/libtool-2.4.6-pthread_bootstrapped.patch
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/650876
+
+--- libtool-2.4.6/build-aux/ltmain.sh
++++ libtool-2.4.6/build-aux/ltmain.sh
+@@ -7079,6 +7079,16 @@
+ *" $arg "*) ;;
+ * ) func_append new_inherited_linker_flags " $arg" ;;
+ esac
++
++ # As we are forced to pass -nostdlib to g++ during linking, the option
++ # -pthread{,s} is not in effect; add the -lpthread to $deplist
++ # explicitly to link correctly.
++ if test "$tagname" = CXX -a x"$with_gcc" = xyes; then
++ case "$arg" in
++ -pthread*) func_append deplibs " -lpthread" ;;
++ esac
++ fi
++
+ continue
+ ;;
+