summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangmin Seo <sangmin7.seo@samsung.com>2017-07-11 16:30:08 +0900
committerSangmin Seo <sangmin7.seo@samsung.com>2017-07-12 10:57:50 +0900
commitcc7548fc23b95516ee6af241594554deadba717b (patch)
treea388893b1ae7277138695c013526dfb2abc5bf50
parent8f0da1d02a4956801ccd1d0df529ca68d821d8e9 (diff)
downloadlinaro-gcc-sandbox/sangminseo/opt-force-flags.tar.gz
linaro-gcc-sandbox/sangminseo/opt-force-flags.tar.bz2
linaro-gcc-sandbox/sangminseo/opt-force-flags.zip
Add OPT_FORCE_FLAGS to gcc-force-options.sandbox/sangminseo/opt-force-flags
In case we want to append other flags to existing force options, this patch adds an environmental variable, OPT_FORCE_FLAGS, to gcc-force-options. Change-Id: Idad13c98f8722730a66277e6c320fff127e23d21
-rw-r--r--packaging/gcc-force-options2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/gcc-force-options b/packaging/gcc-force-options
index 34f49455f2b..dfd7904da8c 100644
--- a/packaging/gcc-force-options
+++ b/packaging/gcc-force-options
@@ -48,7 +48,7 @@ if echo "$PREFLAGS "\$@" $POSTFLAGS" | grep -q -- "-fsanitize=undefined" && echo
# Don't instrument with "-nostdlib" linking
elif ! echo "\$@" | grep -q -e __KERNEL__ -e \-nostdlib; then
# Use readlink in order to follow symlinks if any
- \$(readlink -f \$0)-real $PREFLAGS "\$@" $POSTFLAGS
+ \$(readlink -f \$0)-real $PREFLAGS "\$@" $POSTFLAGS \${OPT_FORCE_FLAGS}
else
\$(readlink -f \$0)-real "\$@"
fi