mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Arvid E. Picciani" <aep@exys.org>
To: <musl@lists.openwall.com>
Subject: (real) cross compilation with gcc specs
Date: Mon, 30 Jul 2012 12:25:28 +0200	[thread overview]
Message-ID: <75926e46f72c83f9447b89ecbadcd2ad@exys.org> (raw)

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


                 reply	other threads:[~2012-07-30 10:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=75926e46f72c83f9447b89ecbadcd2ad@exys.org \
    --to=aep@exys.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).