From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1387 Path: news.gmane.org!not-for-mail From: "Arvid E. Picciani" Newsgroups: gmane.linux.lib.musl.general Subject: (real) cross compilation with gcc specs Date: Mon, 30 Jul 2012 12:25:28 +0200 Message-ID: <75926e46f72c83f9447b89ecbadcd2ad@exys.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343643947 22072 80.91.229.3 (30 Jul 2012 10:25:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2012 10:25:47 +0000 (UTC) To: Original-X-From: musl-return-1388-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jul 30 12:25:47 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1SvnAZ-0000nd-0J for gllmg-musl@plane.gmane.org; Mon, 30 Jul 2012 12:25:47 +0200 Original-Received: (qmail 5565 invoked by uid 550); 30 Jul 2012 10:25:45 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 5556 invoked from network); 30 Jul 2012 10:25:45 -0000 X-Sender: aep@exys.org User-Agent: Roundcube Webmail/0.5.4 Xref: news.gmane.org gmane.linux.lib.musl.general:1387 Archived-At: i like the musl gcc spec, because it allows me to build stuff without a complex set of hacks. However, it's not working for cross compilation, because the paths begin with / Does anyone know how to use --sysroot in gcc specs? %{r} doesn't seem to work although it has been mentioned on the gcc list. Instead i'm doing this now, which is really ugly: *startfile: %{!shared: %:getenv(SYSROOT /lib/%{pie:S}crt1.o)} %:getenv(SYSROOT /lib/crti.o) %{shared|pie:crtbeginS.o%s;:crtbegin.o%s} note that getenv expects a second parameter to concat. quite horrible. any better ideas? -- Arvid E. Picciani