* (real) cross compilation with gcc specs
@ 2012-07-30 10:25 Arvid E. Picciani
0 siblings, 0 replies; only message in thread
From: Arvid E. Picciani @ 2012-07-30 10:25 UTC (permalink / raw)
To: musl
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-07-30 10:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-30 10:25 (real) cross compilation with gcc specs Arvid E. Picciani
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).