From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125336 invoked by alias); 26 Apr 2017 09:02:07 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 125318 invoked by uid 89); 26 Apr 2017 09:02:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=HX-Envelope-From:sk:martin., H*UA:15.0, instruct, H*x:15.0 X-HELO: mail-wm0-f52.google.com Received: from mail-wm0-f52.google.com (HELO mail-wm0-f52.google.com) (74.125.82.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 26 Apr 2017 09:02:05 +0000 Received: by mail-wm0-f52.google.com with SMTP id m123so118879089wma.0 for ; Wed, 26 Apr 2017 02:02:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:organization:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=98yeF/kG0TaYo4OjDQPNswRKu4QkLuCI7sy1tqIbCs0=; b=Uk54/d84OoYu7S4wInRzMoXy4fufRQbp3rYaNx23cKnfRE3qURyeDzDu5HfY1R2TUk eIrlfEdjcWJgqwk4S4BBwq874WlNyPoLy7delRXOvtNdUrM1TdYBXa+MIZ1BiWQC1YL2 t3l5+8zce8VS3NRZpy4A6qyqS/VL7IoY8UrrTZI/OobimV4OfOF6g/KPKKu0CiqeAVw6 usfedo2EX0iRcl3l2+r/VXIO1dO6MNsN/9pQZ9/n8IvqqDAZl6RTg+AV5wOezYt/q4mF XnvzEeZf18A4MQV1kVmDObs2AKlpMGImrQXxzq4GLjoJ1ed4qifZfMcIy8RdAxS9rFg6 iKcQ== X-Gm-Message-State: AN3rC/45MOo26i27HIr3TFWj1oHHDSPZBBM+TR845RnBPrnOvuaeuOUA OvZIyhj2do75xjYYOZE= X-Received: by 10.80.147.27 with SMTP id m27mr8673419eda.146.1493197325557; Wed, 26 Apr 2017 02:02:05 -0700 (PDT) Received: from MARTINOW10 ([212.2.165.242]) by smtp.gmail.com with ESMTPSA id t16sm683279edb.40.2017.04.26.02.02.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Apr 2017 02:02:04 -0700 (PDT) From: "Martin J. O'Riordan" To: Subject: How can I link the binutils using the static 'libc.a' instead of the dynamic 'libc.so'? Date: Wed, 26 Apr 2017 09:02:00 -0000 Message-ID: <007401d2be6b$c6c78bb0$5456a310$@movidius.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-SW-Source: 2017-04/txt/msg00238.txt.bz2 I am building Binutils v2.27, but need to have the executables linked against the static 'libc.a' rather than the default which uses the dynamic 'libc.so'. How can I instruct 'configure' to do this? Is it even possible? I have experimented with setting CFLAGS, CFLAGS_FOR_BUILD, CFLAGS_FOR_TARGET, LDFLAGS, LDFLAGS_FOR_BUILD and LDFLAGS_FOR_TARGET to '-static' and/or '-static-libgcc' but 'ldd' still shows the executables as being bound to '/lib64/libc.so.6'. My build system is "CentOS Linux release 7.1.1503" and the installed version of GCC is "gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)". Thanks, MartinO