From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12266 Path: news.gmane.org!.POSTED!not-for-mail From: Patrick Oppenlander Newsgroups: gmane.linux.lib.musl.general Subject: musl-cross-make: how to build target libraries with -fpic Date: Thu, 21 Dec 2017 09:51:21 +1100 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1513810181 6305 195.159.176.226 (20 Dec 2017 22:49:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 20 Dec 2017 22:49:41 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 To: musl@lists.openwall.com Original-X-From: musl-return-12282-gllmg-musl=m.gmane.org@lists.openwall.com Wed Dec 20 23:49:37 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1eRnBB-0001FK-2v for gllmg-musl@m.gmane.org; Wed, 20 Dec 2017 23:49:37 +0100 Original-Received: (qmail 32442 invoked by uid 550); 20 Dec 2017 22:51:37 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 32405 invoked from network); 20 Dec 2017 22:51:36 -0000 X-Virus-Scanned: amavisd-new at motec.com.au DKIM-Filter: OpenDKIM Filter v2.11.0 camber.motec.com.au 30BE6168194 Content-Language: en-AU Xref: news.gmane.org gmane.linux.lib.musl.general:12266 Archived-At: Hi, what is the the right way to build a toolchain with PIC libraries? The best I've come up with is to add GCC_CONFIG_FOR_TARGET = CFLAGS_FOR_TARGET="-g -O2 -fpic" MUSL_CONFIG = CFLAGS="-fpic" to my config. But that seems a little over complicated. Is there a recommended/better way? Patrick