public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Maxim Blinov <maxim.a.blinov@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: Pass compile flags to libitm/ subdirectory (and in general)
Date: Fri, 10 Apr 2020 19:55:46 +0100	[thread overview]
Message-ID: <CAHXVFW=w0fzqsqcRCRBEhF-vuTWpvq_EitNwRinqctazWVtzQg@mail.gmail.com> (raw)

Hi all,

Is it possible to pass compilation flags to subdirectories of GCC,
e.g. to libitm/?

I'd like to pass CFLAGS="-Wno-error" CXXFLAGS="-Wno-error" to work on
some stuff (among possibly others in the future), but when I try to

$ /src/gcc/.configure CFLAGS="-Wno-error", CXXFLAGS="-Wno-error"
--prefix=foo --target=bar

and then do

$ CFLAGS="-Wno-error" CXXFLAGS="-Wno-error" make

only the core GCC code honours those flags. How can I get libitm/ to
honour them too?

Maxim

             reply	other threads:[~2020-04-10 18:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-10 18:55 Maxim Blinov [this message]
2020-04-10 19:12 Maxim Blinov

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='CAHXVFW=w0fzqsqcRCRBEhF-vuTWpvq_EitNwRinqctazWVtzQg@mail.gmail.com' \
    --to=maxim.a.blinov@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).