mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Juergen Borleis <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: "Chin You Wen (WMSC-HW)" <youwen@willowglen.asia>
Subject: Re: [ptxdist] Append Make Options to Compile Stage of Rule File
Date: Mon, 18 Feb 2019 10:56:56 +0100	[thread overview]
Message-ID: <201902181056.56824.jbe@pengutronix.de> (raw)
In-Reply-To: <CAJ1upxcDae=Uir9G5sbiBszFZxoc2vBA-0oe_fhgKpowP61Pkg@mail.gmail.com>

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
ptxdist@pengutronix.de

  reply	other threads:[~2019-02-18  9:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-18  9:43 Chin You Wen (WMSC-HW)
2019-02-18  9:56 ` Juergen Borleis [this message]
2019-02-18 10:29   ` Chin You Wen (WMSC-HW)
2019-02-18 10:50     ` Juergen Borleis
2019-02-19  3:14       ` Chin You Wen (WMSC-HW)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201902181056.56824.jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=youwen@willowglen.asia \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox