|
From: | Peter O'Gorman |
Subject: | Re: [PATCH] OpenBSD -pthread fix |
Date: | Sun, 21 Sep 2003 22:19:41 +0900 |
User-agent: | Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030916 Thunderbird/0.3a |
Cezary Kaliszyk wrote:
Hello, In OpenBSD (3.3) in many .la files the string dependency_libs includes -pthread. Current libtool fails (during link) with: link: cannot find the library `' --- ltmain.in.orig Sat Sep 20 16:47:09 2003 +++ ltmain.in Sat Sep 20 16:47:34 2003 @@ -1781,6 +1781,10 @@ deplibs="$deplib $deplibs" continue ;; + -pthread) + deplibs="$deplib $deplibs" + continue + ;;
Hi,I think this needs a little more discussion. Older versions of libtool put all kinds of things into dependency_libs, although we could add individual flags like this to accept them, I don't believe it is appropriate.
So the question is:Should we just ignore unknown stuff in dependency_libs (perhaps issue a warning), or just take the flags and pass them through to the linker, assuming they are okay?
Thanks, Peter
[Prev in Thread] | Current Thread | [Next in Thread] |