mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: musl-gcc question
Date: Fri, 21 Sep 2012 00:54:19 -0400	[thread overview]
Message-ID: <20120921045419.GR254@brightrain.aerifal.cx> (raw)
In-Reply-To: <61640.132.241.44.49.1348184386.squirrel@lavabit.com>

On Thu, Sep 20, 2012 at 07:39:46PM -0400, idunham@lavabit.com wrote:
> commit 01c16bf8f4e68c838994716e77bd254b86a989bc
> Author: Isaac Dunham <idunham@lavabit.com>
> Date:   Thu Sep 20 16:30:00 2012 -0700
> 
>     Allow REALGCC to set the compiler for musl-gcc to use
> 
> diff --git a/Makefile b/Makefile
> index 10c174c..f62635d 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -112,7 +112,7 @@ lib/musl-gcc.specs: tools/musl-gcc.specs.sh config.mak
>  	sh $< "$(includedir)" "$(libdir)" "$(LDSO_PATHNAME)" > $@
>  
>  tools/musl-gcc: config.mak
> -	printf '#!/bin/sh\nexec gcc "$$@" -specs "%s/musl-gcc.specs"\n' "$(libdir)" > $@
> +	printf '#!/bin/sh\n[ -z "$$REALGCC" ] && REALGCC=gcc\nexec $$REALGCC "$$@" -specs "%s/musl-gcc.specs"\n' "$(libdir)" > $@

Slight optimization:

+	printf '#!/bin/sh\nexec $${REALGCC:-gcc} "$$@" -specs "%s/musl-gcc.specs"\n' "$(libdir)" > $@

:)

Rich


  reply	other threads:[~2012-09-21  4:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-20 14:50 Jens
2012-09-20 16:00 ` Szabolcs Nagy
2012-09-20 16:34   ` Jens
2012-09-20 17:52 ` Szabolcs Nagy
2012-09-20 18:14 ` Rich Felker
2012-09-20 21:53   ` idunham
2012-09-20 22:04     ` Rich Felker
2012-09-20 23:39       ` idunham
2012-09-21  4:54         ` Rich Felker [this message]
2012-09-21 10:51   ` Jens

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=20120921045419.GR254@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --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).