From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14104 invoked by alias); 6 Mar 2014 18:48:40 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 14091 invoked by uid 89); 6 Mar 2014 18:48:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_05,TVD_SUBJ_NUM_OBFU_MINFP autolearn=no version=3.3.2 X-HELO: stuffed.shaftnet.org Received: from 162-17-110-37-static.hfc.comcastbusiness.net (HELO stuffed.shaftnet.org) (162.17.110.37) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 06 Mar 2014 18:48:38 +0000 Received: from stuffed.shaftnet.org (localhost [127.0.0.1]) by stuffed.shaftnet.org (8.14.7/8.14.7) with ESMTP id s26ImYnj024006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 6 Mar 2014 13:48:34 -0500 Received: (from pizza@localhost) by stuffed.shaftnet.org (8.14.7/8.14.7/Submit) id s26ImY7t024005 for crossgcc@sourceware.org; Thu, 6 Mar 2014 13:48:34 -0500 Date: Thu, 06 Mar 2014 18:48:00 -0000 From: Solomon Peachy To: crossgcc@sourceware.org Subject: [crosstool-ng][patch] Fix elf2flt compile on modern systems Message-ID: <20140306184834.GA15649@shaftnet.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="V0207lvV8h4k8FAm" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-03/txt/msg00001.txt.bz2 --V0207lvV8h4k8FAm Content-Type: multipart/mixed; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 544 Without this fix, elf2flt will blow up complaining that it can't resolve dlopen() and its friends. One has to explicitly pass '-ldl' onto the=20 final linking command line. Incidentally, the elf2flt CVS host has been down for some time now;=20 There's a git repo we could pull from hosted on the buildroot site, but=20 I don't know how up-to-date it is. Cheers, - Solomon --=20 Solomon Peachy pizza at shaftnet dot org Delray Beach, FL ^^ (email/xmpp) ^^ Quidquid latine dictum sit, altum viditur. --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="fix-ctng.diff" Content-length: 870 diff --git a/crosstool-ng/scripts/build/binutils/binutils.sh b/crosstool-ng/scripts/build/binutils/binutils.sh index 059566d..741ed69 100644 --- a/crosstool-ng/scripts/build/binutils/binutils.sh +++ b/crosstool-ng/scripts/build/binutils/binutils.sh @@ -288,7 +288,8 @@ do_elf2flt_backend() { CT_DoLog EXTRA "Configuring elf2flt" CT_DoExecLog CFG \ CFLAGS="${cflags}" \ - LDFLAGS="${ldflags} -ldl" \ + LDFLAGS="${ldflags}" \ + LIBS="-ldl" \ "${CT_SRC_DIR}/elf2flt-${CT_ELF2FLT_VERSION}/configure" \ --build=${CT_BUILD} \ --host=${host} \ --fUYQa+Pmc3FrFX/N-- --V0207lvV8h4k8FAm Content-Type: application/pgp-signature Content-length: 155 -----BEGIN PGP SIGNATURE----- iD8DBQFTGMMCPuLgii2759ARAgtJAKCYKdxE7OHvybgHTrWW8MMZaAzvIwCfRqZs rDQupaQWY68gVFqW6AoiTxE= =r1LX -----END PGP SIGNATURE----- --V0207lvV8h4k8FAm--