Commit cf74c9cc authored by Mark Andrews's avatar Mark Andrews
Browse files

1779. [port] OSF 5.1: libtool didn't handle -pthread correctly.

Redo w/ fix from generic fix from libtool maintainer.
parent 136e739d
......@@ -1487,19 +1487,11 @@ EOF
continue
;;
-mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe)
deplibs="$deplibs $arg"
continue
;;
-pthread)
case $host in
*-*-osf5.1)
# -pthread is a compiler only option
continue
;;
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
case "$archive_cmds" in
*"\$LD"*) ;;
*) deplibs="$deplibs $arg";;
esac
deplibs="$deplibs $arg"
continue
;;
......@@ -1987,7 +1979,10 @@ EOF
compile_deplibs="$deplib $compile_deplibs"
finalize_deplibs="$deplib $finalize_deplibs"
else
deplibs="$deplib $deplibs"
case "$archive_cmds" in
*"\$LD"*) ;;
*) deplibs="$deplibs $arg";;
esac
fi
continue
;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment