From patchwork Fri Dec 5 14:23:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Solomon Peachy X-Patchwork-Id: 418120 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 EAF431400D5 for ; Sat, 6 Dec 2014 01:23:30 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=veRacAgBteu694yzYnA3bf/BKvjjQmgkhRSNu4kkIIlCdYG2cEqTR 7uteCxOmL5L0tz8cxq1emMJOuqW2jNFlYRIqg+rNa2ghK/k+0TbqLCnk7BZJQ49i Q1IgWUzfFH5WRMeqy2ew4BndGGZ380zZxcsk4qD8B+QDi24hnxfjts= 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:from:to:cc:subject:date:message-id; s=default; bh=GPuyJcMzHO1J6nSXI227mw5Fe0U=; b=iQE+AczCBtpIM8D0GEB853vwUYuj mPtZerfRRf6VKcUi4/JE3IWcWTosrorERZ1T/cx2TSe0rkAVMduvv1OdwUZuxq2J FltdDeBuNl4OBszK6y77bI84FePtpHxs92wGxb7dTraJe8qtLeO4iAPMXFc1p4vJ dUD98rYBa/7LiG4= Received: (qmail 24352 invoked by alias); 5 Dec 2014 14:23:24 -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 24340 invoked by uid 89); 5 Dec 2014 14:23:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL, BAYES_00, LIKELY_SPAM_FROM 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; Fri, 05 Dec 2014 14:23:17 +0000 Received: from stuffed.shaftnet.org (localhost [127.0.0.1]) by stuffed.shaftnet.org (8.14.7/8.14.7) with ESMTP id sB5ENEZM010451 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 5 Dec 2014 09:23:14 -0500 Received: (from pizza@localhost) by stuffed.shaftnet.org (8.14.7/8.14.7/Submit) id sB5ENEEY010450; Fri, 5 Dec 2014 09:23:14 -0500 From: Solomon Peachy To: crossgcc@sourceware.org Cc: Solomon Peachy Subject: [PATCH rebase] binutils: Fix elf2flt compile on more modern systems Date: Fri, 5 Dec 2014 09:23:13 -0500 Message-Id: <1417789393-10413-1-git-send-email-pizza@shaftnet.org> Without this fix, elf2flt will blow up complaining that it can't resolve dlopen() and friends. One has to explicitly pass '-ldl' on the final linking command line, because the system linker is not resolving indirect dependent shared libraries. I've needed to this patch for several years on Fedora systems. Signed-off-by: Solomon Peachy --- scripts/build/binutils/binutils.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index b6207be..c935f8d 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -291,6 +291,7 @@ do_elf2flt_backend() { CT_DoExecLog CFG \ CFLAGS="${cflags}" \ LDFLAGS="${ldflags}" \ + LIBS="-ldl" \ "${CT_SRC_DIR}/elf2flt-${CT_ELF2FLT_VERSION}/configure" \ --build=${CT_BUILD} \ --host=${host} \