Date: 13 Mar 2003 15:18:52 -0500 From: Joe Marcus Clarke <marcus@marcuscom.com> To: hackers@freebsd.org Subject: Question on gcc linker and -pthread Message-ID: <1047586732.84063.10.camel@gyros>
index | next in thread | raw e-mail
[-- Attachment #1 --] I've noticed something I think is strange with gcc, the -shared flag, and -pthread on -STABLE. I'm hoping someone can enlighten me as to why this happens or if it's a bug. If I compile something with the following command, I do not see libc_r.so linked in the resulting object: cc -shared -pthread -o xxx.so xxx.c However, if I replace -pthread with -lc_r, it works. Also, if I change the command to: cc -Wl,-shared -pthread -o xxx.so xxx.c I also see libc_r.so linked in. Is this expected behavior? libtool seems to like the former -shared syntax which is causing some problems with some GTK themes. Thanks. Joe -- PGP Key : http://www.marcuscom.com/pgp.asc [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA+cOerb2iPiv4Uz4cRAteDAJwNg6RB/LeT/3S89KYeSZin0XMZSQCfUSZA M28+1btQrG9L+e1x6DpSbnU= =OC51 -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1047586732.84063.10.camel>
