From patchwork Thu Mar 6 18:48:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Solomon Peachy X-Patchwork-Id: 327546 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 697EA2C031F for ; Fri, 7 Mar 2014 05:48:48 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=yMS1tf3cIoIUC9wAcvdgX3lBGj3eX GbSYl6Dg5M8fSMdMDlTtflie2ac5Uv3VHn7YbeU2yVB79X3LChmi6FO39OgYL7Bh ZnVc2dA65JHQwRi9nPgY46wOGh9vX1iB9vgJLtaLfU2TL8S3I4zHXxgk4ZX/NUXK PLYadF3BgEnY9Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=jvimfJNACrTSu0UjARDDs51ISNg=; b=mQo 56KTIsN0ZkDKD2KrMjtEqfwBlneaCqYnTHFGlqYPdjaz06rnJR0zA0qOrKyzVkEa N559Tzmz93LXHWp4jd4XBtR7f4JeoGPNv1kxb1jcKPwrhlDf5Kkpa+0ZYwL/rMNC R9lhga5w6LjzhBcSRraDt/zxTmwhMAHsRw9cz8Ds= 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-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@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, 6 Mar 2014 13:48:34 -0500 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-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 final linking command line. Incidentally, the elf2flt CVS host has been down for some time now; There's a git repo we could pull from hosted on the buildroot site, but I don't know how up-to-date it is. Cheers, - Solomon 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} \