Date: Wed, 24 Sep 2003 22:36:59 -0500 (CDT) From: Loren James Rittle <rittle@latour.rsch.comm.mot.com> To: current@freebsd.org Subject: Re: Fixing -pthreads (Re: ports and -current) Message-ID: <200309250336.h8P3axl3035080@latour.rsch.comm.mot.com> References: <Pine.GSO.4.10.10309241029001.26896-100000@pcnet5.pcnet.com> <200309241703.aa94887@salmon.maths.tcd.ie>
index | next in thread | previous in thread | raw e-mail
>I was looking through gcc last night to see how conceptually difficult
>it would be to do something like this. But instead of a file, I was
>thinking of this process:
>
>* if env("PTHREADS_LIBS") then LDFLAGS += PTHREADS_LIBS
>* elseif fileexists("libpthread") then LDFLAGS += -lpthread
>* elseif fileexists("libthr") then LDFLAGS += -lthr
>* elseif fileexists("libc_r") then LDFLAGS += -lc_r
>* else error("Threading not supported.")
Hello Mike,
I too thought about making -pthread an exact alias for
env("PTHREADS_LIBS") (and, if empty, pick -lpthread or the classic
default -lc_r). The main issue is that the FSF gcc has not accepted
any code into the gcc driver which depends on environment variables.
Loren
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309250336.h8P3axl3035080>
