Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Mon, 30 Jul 2012 12:25:28 +0200
From: "Arvid E. Picciani" <>
To: <>
Subject: (real) cross compilation with gcc specs

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:

%{!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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.