Date: Sat, 2 Jun 2007 12:50:58 +0300 (EEST) From: Vladimir Kushnir <vkushnir@bigmir.net> To: freebsd-current@freebsd.org Subject: "-pthread" == "-lpthread" for shared libs in -CURRENT Message-ID: <20070602121928.G90169@kushnir1.kiev.ua>
next in thread | raw e-mail | index | archive | help
Hello, guys.
In post-gcc42 -CURRENT:
cc -shared -fPIC -o libmts.so mtest.c -lm -pthread
~~~~~~~ ~~~~~~~~
ldd ./libmts.so
./libmts.so:
libm.so.5 => /lib/libm.so.5 (0x800b01000)
libthr.so.3 => /lib/libthr.so.3 (0x800c1b000)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libc.so.7 => /lib/libc.so.7 (0x800631000)
>From old gcc specs:
*lib:
%{!shared:
%{!pg: %{pthread:-lpthread} -lc}
%{pg: %{pthread:-lpthread_p} -lc_p}
}
Now:
*lib:
%{!shared:
%{!pg: %{pthread:-lpthread} -lc}
%{pg: %{pthread:-lpthread_p} -lc_p}
}
%{shared: %{pthread:-lpthread} -lc}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Is this behaviour intended?
Regards,
Vladimir
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070602121928.G90169>
