summaryrefslogtreecommitdiff
path: root/build-aux/ltmain.sh
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2018-11-16 07:15:00 +0100
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2018-11-16 07:15:00 +0100
commit5ef83547e904e4d411239ea0a27571e7d1a0b5b4 (patch)
treef1d883b562a669deb6bfd59b4de27bfaaa63d8a5 /build-aux/ltmain.sh
parent71a38df59b7b10358477073c9bc053055aa394ce (diff)
parent37162209a3da8812203022de6b81e4f05015043a (diff)
Update upstream source from tag 'upstream/0.9.0'
Update to upstream version '0.9.0' with Debian dir 27aa4f803776452e4996b63302a6738b52a9b382
Diffstat (limited to 'build-aux/ltmain.sh')
-rw-r--r--build-aux/ltmain.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh
index b2549ee..e774ddf 100644
--- a/build-aux/ltmain.sh
+++ b/build-aux/ltmain.sh
@@ -7127,6 +7127,16 @@ func_mode_link ()
*" $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
;;