From beb92a43a7451981fad54c98c809d50c1b16c1e9 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 1 Dec 2004 04:52:27 +0000 Subject: [PATCH] 1779. [port] OSF 5.1: libtool didn't handle -pthread correctly. --- CHANGES | 2 ++ ltmain.sh | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 4dbdc58626..f0403ba470 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +1779. [port] OSF 5.1: libtool didn't handle -pthread correctly. + 1778. [port] HUX 11.11: fix broken IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT macros. diff --git a/ltmain.sh b/ltmain.sh index 47fa4f179f..06fe7c8796 100644 --- a/ltmain.sh +++ b/ltmain.sh @@ -1356,7 +1356,18 @@ EOF continue ;; - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) + -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe) + deplibs="$deplibs $arg" + continue + ;; + + -pthread) + case $host in + *-*-osf5.1) + # -pthread is a compiler only option + continue + ;; + esac deplibs="$deplibs $arg" continue ;;