2005-02-24 15:26:59

by Horst H. von Brand

[permalink] [raw]
Subject: Usage of EXTRA_CFLAGS

Here (sparc64) I get build failures due to EXTRA_CFLAGS being set in
arch/sparc64/kernel/Makefile:

EXTRA_CFLAGS := -Werror

But if I override this setting (broken, filesistems use clear_user(),
discard the result and have comments justifiying this) on the make run like

make EXTRA_CFLAGS= all

the build fails in security/selinux/avc.c, since security/selinux/Makefile
adds:

EXTRA_CFLAGS += -Isecurity/selinux/include

For now, I edited arch/sparc64/Makefile. There has to be some way to
control stuff like -Werror independently of other stuff (or perhaps the
SELinux Makefile got it wrong?).
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513