Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120921045419.GR254@brightrain.aerifal.cx>
Date: Fri, 21 Sep 2012 00:54:19 -0400
From: Rich Felker <dalias@...ifal.cx>
To: musl@...ts.openwall.com
Subject: Re: musl-gcc question

On Thu, Sep 20, 2012 at 07:39:46PM -0400, idunham@...abit.com wrote:
> commit 01c16bf8f4e68c838994716e77bd254b86a989bc
> Author: Isaac Dunham <idunham@...abit.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

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.