[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Proposal: Making Debian compiler agnostic



On Tue, Aug 28, 2012 at 10:27:18PM +0300, Serge wrote:
> 2012/8/28 Paul Tagliamonte wrote:
> 
> >> Just curious, do you have a list of such packages?
> >
> > No, I've not built up such a list. I've seen it enough for me to recall
> > this edge-case. Most packages with a lone Makefile usually have:
> >
> >   CC=gcc
> 
> Notabug. :) I guess this is how it's supposed to be by Makefile design.

Is a bug :)

> It's not a "hardcode". It's an option. You can always change it, just run:
>   make CC=anothercc
> (Note: not `CC=anothercc make`) It's a (known?) makefile feature. Those
> variables in the beginning of a Makefile are often there just for that.

It won't respect exported env-vars:

    [tag@chayot:~]$ cat Makefile
    CRUFT =  foo
    KRUFT ?= bar

    all:
        @echo $(CRUFT)
        @echo $(KRUFT)


    [tag@chayot:~]$ make
    foo
    bar
    [tag@chayot:~]$ make CRUFT=bar
    bar
    bar
    [tag@chayot:~]$ make KRUFT=foo
    foo
    foo
    [tag@chayot:~]$ CRUFT=bar make
    foo
    bar
    [tag@chayot:~]$ KRUFT=foo make
    foo
    foo

> 
> -- 
>   Serge
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: CAOVenEo+=Yt9NvkyAjn7R9-UG8LgV3WKsKtAaKJ4mvPhvuXQ3A@mail.gmail.com">http://lists.debian.org/CAOVenEo+=Yt9NvkyAjn7R9-UG8LgV3WKsKtAaKJ4mvPhvuXQ3A@mail.gmail.com
> 

-- 
 .''`.  Paul Tagliamonte <paultag@debian.org>
: :'  : Proud Debian Developer
`. `'`  4096R / 8F04 9AD8 2C92 066C 7352  D28A 7B58 5B30 807C 2A87
 `-     http://people.debian.org/~paultag

Attachment: signature.asc
Description: Digital signature


Reply to: