From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78691 invoked by alias); 2 May 2017 15:51:40 -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 78644 invoked by uid 89); 2 May 2017 15:51:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=no!, instruct, no X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 02 May 2017 15:51:38 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BC3719D50A; Tue, 2 May 2017 15:51:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com BC3719D50A Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=nickc@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com BC3719D50A Received: from [10.36.116.56] (ovpn-116-56.ams2.redhat.com [10.36.116.56]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F0D2F77D61; Tue, 2 May 2017 15:51:38 +0000 (UTC) Subject: Re: How can I link the binutils using the static 'libc.a' instead of the dynamic 'libc.so'? To: "Martin J. O'Riordan" , binutils@sourceware.org References: <007401d2be6b$c6c78bb0$5456a310$@movidius.com> From: Nick Clifton Message-ID: <949c9211-cc29-036b-89e6-edfe62ab58e5@redhat.com> Date: Tue, 02 May 2017 15:51:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: <007401d2be6b$c6c78bb0$5456a310$@movidius.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg00022.txt.bz2 Hi Martin, > How can I instruct 'configure' to do this? Is it even possible? No! I was surprised to find this out, but it seems that the configure and build system really does not want you to link with a static C library. You can do it by hand of course, but that does not make for a reproducible build. You can edit the makefiles too, but again this is not reliable in the long term. Sorry - it looks like there is no easy solution to this problem. Cheers Nick