8 msg/usr/share/mk/sys.mk and FORTRAN on -CURRENT
3 msgFreeBSD 7.0-CURRENT weird msgs
4 msgCouldn't build a release with this morning's so...
3 msgpanic in tulip_rx_intr after recent changes
10 msgRe: xorg 7.2 & environment variables set in...
2 msgath0: using obsoleted if_watchdog interface
1 msgQ) diablo-jdk1.5.0 dumps core @ -current
11 msgHEADS UP: BIND 9.4.1 imported
1 msgsu(1) suspends the process

'-pthread' == '-lpthread' for shared libs in -C...
\ Vladimir Kushnir (2 Jun 2007)
. \ Daniel Eischen (2 Jun 2007)
. \ Alexander Kabaev (2 Jun 2007)
. . \ Vladimir Kushnir (2 Jun 2007)
. \ Vladimir Kushnir (2 Jun 2007)
. . \ Kris Kennaway (2 Jun 2007)
. \ Jeremie Le Hen (13 Jun 2007)
. . \ Alexander Kabaev (13 Jun 2007)
. . . \ Alexander Leidinger (13 Jun 2007)
. . . . \ Alexander Kabaev (13 Jun 2007)
. . . . . \ Alexander Leidinger (13 Jun 2007)

10 msgnfe(4) vs. nve(4)
1 msglocale woes
5 msgDev isp hangs on current
6 msgIssues with kernel / userland drivers after rec...
26 msgCFT: major wireless changes
6 msgpanic when detecting an ES1373 AudioPCI sound card
2 msgDebugging FreeBSD 7.0 How to savecore in rc.conf?
37 msgpf(4) status in 7.0-R
9 msgNET_NEEDS_GIANT removal
7 msgPending TrustedBSD stuff, etc.
Subject:'-pthread' == '-lpthread' for shared libs in -CURRENT
Group:Freebsd-current
From:Vladimir Kushnir
Date:2 Jun 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
_______________________________________________
freebsd-current mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe"


© 2004-2008 readlist.com