|
Message-ID: <75926e46f72c83f9447b89ecbadcd2ad@exys.org> Date: Mon, 30 Jul 2012 12:25:28 +0200 From: "Arvid E. Picciani" <aep@...s.org> To: <musl@...ts.openwall.com> 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: *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
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.