From owner-freebsd-hackers Thu Mar 13 12:19:11 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 326BB37B404 for ; Thu, 13 Mar 2003 12:19:09 -0800 (PST) Received: from creme-brulee.marcuscom.com (rdu57-17-158.nc.rr.com [66.57.17.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E21643FB1 for ; Thu, 13 Mar 2003 12:19:06 -0800 (PST) (envelope-from marcus@marcuscom.com) Received: from [10.2.1.4] (vpn-client-4.marcuscom.com [10.2.1.4]) by creme-brulee.marcuscom.com (8.12.8/8.12.8) with ESMTP id h2DKIRrI021046 for ; Thu, 13 Mar 2003 15:18:27 -0500 (EST) (envelope-from marcus@marcuscom.com) Subject: Question on gcc linker and -pthread From: Joe Marcus Clarke To: hackers@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-nDpBr0qyRi9GSsG+IAPg" Organization: MarcusCom, Inc. Message-Id: <1047586732.84063.10.camel@gyros> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 13 Mar 2003 15:18:52 -0500 X-Spam-Status: No, hits=-6.0 required=5.0 tests=HOT_NASTY,PGP_SIGNATURE_2 autolearn=ham version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-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