Thread (21 messages) 21 messages, 3 authors, 2013-06-28

Re: [PATCH 2/6] Makefile: Allow the user to pass EXTRA_CFLAGS

From: NeilBrown <hidden>
Date: 2013-06-24 07:01:18

On Wed, 19 Jun 2013 11:48:47 +0200 Bernd Schubert
[off-list ref] wrote:
Hello Neil,

On 06/19/2013 02:07 AM, NeilBrown wrote:
quoted
On Tue, 18 Jun 2013 11:09:21 +0200 Bernd Schubert
[off-list ref] wrote:
quoted
Users might want to compile with optimization levels and
CXFLAGS as suggested in the Makefile comment does not work.
Doesn't it?  It works for me.

    make CXFLAGS=-O3

compiled with "-O3".


I haven't applied this patch (feel free to try to be more convincing) but has
applied all the others (after removing a little bit of trailing white space).

I'm sorry for the extra work with the white space. Next time I'm first 
going to run linux/scripts/checkpatch.pl

Hmm, indeed

make CXFLAGS=-O3

works, but the other way around it does not:

CXFLAGS=-O3 make

I still wonder how it works, as Makefile sets "CXFLAGS = -ggdb".
Anyway, whichever exception 'make' has for that, can we change it to

-CXFLAGS = -ggdb
+CXFLAGS ?= -ggdb

which would make it work with either way CXFLAGS is specified.


Thanks,
Bernd

Sounds fair.  I've made that change.

NeilBrown

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help