From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH] platforms: document precedence rules for TARGET_EXTRA_*FLAGS
Date: Mon, 2 Mar 2020 15:01:46 +0100 [thread overview]
Message-ID: <20200302140146.8420-1-rhi@pengutronix.de> (raw)
scripts/wrapper/libwrapper.sh adds these global options before the rest
of its command line, so later options from the package's build system
will overwrite them. Document this fact in case anybody wonders why
these options cannot be used to overwrite the default passed by the
package.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
platforms/toolchain_options.in | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/platforms/toolchain_options.in b/platforms/toolchain_options.in
index afae2a67cd11..0361bf6e7e8f 100644
--- a/platforms/toolchain_options.in
+++ b/platforms/toolchain_options.in
@@ -95,22 +95,38 @@ config TARGET_EXTRA_CPPFLAGS
help
Extra options for the C preprocessor.
+ Note: if conflicting preprocessor options are passed, the options
+ specified by the package's build system take precedence over those
+ specified here.
+
config TARGET_EXTRA_CFLAGS
string
prompt "Extra CFLAGS (c)"
help
Extra options for the C compiler.
+ Note: if conflicting compiler options are passed, the options
+ specified by the package's build system take precedence over those
+ specified here.
+
config TARGET_EXTRA_CXXFLAGS
string
prompt "Extra CXXFLAGS (c++)"
help
Extra options for the C++ compiler.
+ Note: if conflicting compiler options are passed, the options
+ specified by the package's build system take precedence over those
+ specified here.
+
config TARGET_EXTRA_LDFLAGS
string
prompt "Extra LDFLAGS (ld)"
help
Extra options for the linker.
+ Note: if conflicting linker options are passed, the options
+ specified by the package's build system take precedence over those
+ specified here.
+
endmenu
--
2.25.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2020-03-02 14:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-02 14:01 Roland Hieber [this message]
2020-03-27 9:52 ` [ptxdist] " Michael Olbrich
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=20200302140146.8420-1-rhi@pengutronix.de \
--to=rhi@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/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