mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 23:08:09 -07:00
Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/34807 Signed-off-by: Michał Górny <mgorny@gentoo.org>
22 lines
532 B
Diff
22 lines
532 B
Diff
https://bugs.gentoo.org/650876
|
|
|
|
--- a/build-aux/ltmain.sh
|
|
+++ b/build-aux/ltmain.sh
|
|
@@ -7127,6 +7127,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
|
|
;;
|
|
|