|
From: | Peter O'Gorman |
Subject: | Re: [PATCH] OpenBSD -pthread fix |
Date: | Mon, 22 Sep 2003 13:21:37 +0900 |
User-agent: | Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030916 Thunderbird/0.3a |
Bob Friesenhahn wrote:
I think so. The story gets worse. These are the threads related options that the ACX_PTHREAD macro from the Autoconf archive checks for: -Kthread -kthread -pthread -pthreads -mthreads --thread-safe -mt
It looks like there are the beginnings of thread-safe support in libtool already:
* The libtool script accepts the -thread-safe flag. * libtool puts the "thread_safe_flag_spec" var into the script.Unfortunately the thread_safe_flag_spec does not appear to get set to anything, and the -thread-safe flag does very little.
It seems to me that working from what is there already is the way to go here. We need to put a test into libtool.m4 to set thread_safe_flag_spec and implement it in ltmain.in. Of course we will also have to make -pthread synonymous with -thread-safe, as well as all those other flags you mention :(, and make sure that -thread-safe gets put into dependency_libs.
Cezary, I am not going to apply your patch, I hope to have the above implemented soon (but I certainly will not complain of you beat me to it).
Still leaves us with the problem of what to do with other unrecognized flags in dependency_libs from older libtools.
Thanks, Peter
[Prev in Thread] | Current Thread | [Next in Thread] |