"-pthread" == "-lpthread" for shared libs in -CURRENT
Vladimir Kushnir
vkushnir at bigmir.net
Sat Jun 2 09:51:20 UTC 2007
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
More information about the freebsd-current
mailing list