Skip site navigation (1)Skip section navigation (2)
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>

next in thread | raw e-mail | index | archive | help

--=-nDpBr0qyRi9GSsG+IAPg
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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

--=20
PGP Key : http://www.marcuscom.com/pgp.asc



--=-nDpBr0qyRi9GSsG+IAPg
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQA+cOerb2iPiv4Uz4cRAteDAJwNg6RB/LeT/3S89KYeSZin0XMZSQCfUSZA
M28+1btQrG9L+e1x6DpSbnU=
=OC51
-----END PGP SIGNATURE-----

--=-nDpBr0qyRi9GSsG+IAPg--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1047586732.84063.10.camel>