From cc7548fc23b95516ee6af241594554deadba717b Mon Sep 17 00:00:00 2001 From: Sangmin Seo Date: Tue, 11 Jul 2017 16:30:08 +0900 Subject: Add OPT_FORCE_FLAGS to gcc-force-options. 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 --- packaging/gcc-force-options | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3