Hi You Wen,

On Monday 18 February 2019 10:43:59 Chin You Wen (WMSC-HW) wrote:
> I am writing a rule to compile the libsepol package that comes with plain
> Makefiles. I am trying to pass *-Wno-error* option through the
> <PKG>_MAKE_OPT variable to override the *-Werror *option specified in the
> package Makefile.
>
> I have set
>  LIBSEPOL_CONF_TOOL      := NO
>
> and also
> LIBSEPOL_MAKE_ENV := $(CROSS_ENV)
> LIBSEPOL_MAKE_OPT := \
>                 -Wno-error=shadow
>
> The make still runs without the *-Wno-error *option during compilation.

Hmm, the "-Wno-error=shadow" must be forwarded to the compiler. You may need 
something like "CFLAGS=-Wno-error=shadow" in your case instead. This 
variable is used in the project's Makefiles (like in src/Makefile, line 50 
for example).

Cheers,
Jürgen

-- 
Pengutronix e.K.                             | Juergen Borleis             |
Industrial Linux Solutions                   | http://www.pengutronix.de/  |

_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to