From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18493 invoked by alias); 13 Jun 2005 15:27:20 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18444 invoked by uid 22791); 13 Jun 2005 15:27:13 -0000 Received: from wbmler3.mail.xerox.com (HELO wbmler3.mail.xerox.com) (13.13.138.218) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 13 Jun 2005 15:27:13 +0000 Received: from wbmlir1.mail.xerox.com (wbmlir1.mail.xerox.com [13.131.8.221]) by wbmler3.mail.xerox.com (8.13.4/8.13.1) with ESMTP id j5DFR2AN018589 for ; Mon, 13 Jun 2005 11:27:03 -0400 Received: from wbmlir1.mail.xerox.com (localhost [127.0.0.1]) by wbmlir1.mail.xerox.com (8.13.4/8.13.1) with ESMTP id j5DFQB0D030252 for ; Mon, 13 Jun 2005 11:26:11 -0400 Received: from mailhost.eng.mc.xerox.com (romeo.ess.mc.xerox.com [13.1.87.14]) by wbmlir1.mail.xerox.com (8.13.4/8.13.1) with ESMTP id j5DFQBg5030247 for ; Mon, 13 Jun 2005 11:26:11 -0400 Received: from rockhopper (rockhopper [13.142.232.138]) by mailhost.eng.mc.xerox.com (8.11.6+Sun/8.9.3) with ESMTP id j5DFOCd25515 for ; Mon, 13 Jun 2005 11:24:12 -0400 (EDT) Subject: Configuring linker flags while cross-compiling gdb From: Aaron Gaudio To: gdb Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-2fPGrvYKLD77Ac8I5hbZ" Date: Mon, 13 Jun 2005 15:27:00 -0000 Message-Id: <1118676366.27729.73.camel@rockhopper> Mime-Version: 1.0 X-SW-Source: 2005-06/txt/msg00112.txt.bz2 --=-2fPGrvYKLD77Ac8I5hbZ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Content-length: 1514 Continuing with my adventure from last week, I am now trying to cross- comile gdb to run on i386-pc-solaris2.10 and build on sparc-sun- solaris2.10.=20 I used the following configure line: $ bash_cv_have_mbstate_t=3Dyes ./configure --build sparc-sun-solaris2.8 -- host i386-pc-solaris2.10 This seems to get the correct compilers to use. However, when trying to link, it is missing the correct rpath-link (where I have the x86 sysroot to link system libraries), and it is also not linking in a required library, libsocket (I get undefined symbols that manually adding - lsocket to the link command fixes). So, now I'm trying to figure out if there is a way to pass these by way of option or environment variable to the top-level configure in a way that they will cascade to the subdirectory configures and/or Makefiles. Perusing the scripts in question, the top-level configure and Makefile.in use a variable called "LDFLAGS_FOR_TARGET", and that seems like the place to add a -R option or -W,l,--rpath-link to take care of the rpath, however the gdb/configure and gdb/Makefile.in don't reference this variable at all... Can anyone offer any advise (or point me somewhere where this has already been explained)? --=20 Aaron Gaudio agaudio @ eng.mc.xerox.com 585-422-6876 While life is yours, live joyously; None can escape Death's searching eye: When once this frame of ours they burn, How shall it e'er again return? --=-2fPGrvYKLD77Ac8I5hbZ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part Content-length: 197 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iEYEABECAAYFAkKtpY4ACgkQEbHgw5SciQY6uQCfXFHvnT5ulIssDSVzVwCE4JG/ cm8AoMoyeIleH3lvfd+BK22+/65VWMZV =rVBf -----END PGP SIGNATURE----- --=-2fPGrvYKLD77Ac8I5hbZ--