[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: linking a shared library with -pthread omits -pthread on the link l
From: |
Albert Chin |
Subject: |
Re: linking a shared library with -pthread omits -pthread on the link line. |
Date: |
Fri, 13 Dec 2002 21:28:54 -0600 |
User-agent: |
Mutt/1.4i |
On Tue, Dec 10, 2002 at 01:49:01PM +0100, Sebastian Wilhelmi wrote:
>
> libtool --mode=link gcc -o libtest.la -rpath /usr/lib test.lo -pthread
>
> the following link line is generated:
>
> gcc -shared test.lo -Wl,-soname -Wl,libtest.so.0 -o \
> .libs/libtest.so.0.0.0
>
> instead of
>
> gcc -shared test.lo -Wl,-soname -Wl,libtest.so.0 -o \
> .libs/libtest.so.0.0.0 -posix
>
> Please have a look at the GLib bug
>
> http://bugzilla.gnome.org/show_bug.cgi?id=100697
>
> as to why we need that.
>
> ...
>
> Attached is a patch for libtool, which solves this issue for the options
> -pthread, -pthreads, -threads, -mt, -mthreads and -Kthread.
Too much duplicate code. Just use one case statement for it all.
BTW, should libtool just pass through options it doesn't recognize?
--
albert chin (address@hidden)
- linking a shared library with -pthread omits -pthread on the link line., Sebastian Wilhelmi, 2002/12/10
- Re: linking a shared library with -pthread omits -pthread on the link line.,
Albert Chin <=
- Re: linking a shared library with -pthread omits -pthread on the link line., Bob Friesenhahn, 2002/12/14
- Re: linking a shared library with -pthread omits -pthread on the link line., Albert Chin, 2002/12/14
- Re: linking a shared library with -pthread omits -pthread on the link line., Max Bowsher, 2002/12/14
- RE: linking a shared library with -pthread omits -pthread on the link line., Howard Chu, 2002/12/14
- Re: linking a shared library with -pthread omits -pthread on the link line., Max Bowsher, 2002/12/14
- Re: linking a shared library with -pthread omits -pthread on the link line., Albert Chin, 2002/12/14
- Re: linking a shared library with -pthread omits -pthread on the link line., Ossama Othman, 2002/12/14
- Re: linking a shared library with -pthread omits -pthread on the link line., Albert Chin, 2002/12/14
- Re: linking a shared library with -pthread omits -pthread on the link line., Bob Friesenhahn, 2002/12/14
- Re: linking a shared library with -pthread omits -pthread on the link line., Albert Chin, 2002/12/14