summaryrefslogtreecommitdiff
path: root/build-aux/ltmain.sh
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2018-11-21 08:50:59 +0100
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2018-11-21 08:50:59 +0100
commit4525c4951ed4d49ceb65525cea14b9aa35f1d3fc (patch)
tree8ed4dc2c3fbbfdad043d8ea8b6bc6e35e574606b /build-aux/ltmain.sh
parentcc175e2048d967ddb8f3e54587938072150bbc7c (diff)
parent294cef1daeb0b72062e6b01436d7bc95e87fcaa1 (diff)
Merge branch 'release/debian/0.9.0-1'debian/0.9.0-1
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
;;