diff options
author | Filipe Brandenburger <filbranden@google.com> | 2015-09-22 09:41:32 -0700 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-29 10:45:10 +0200 |
commit | de2820284a3c2905f0a76bf3fd196ce3a37f775a (patch) | |
tree | f21ef5e2c4ee9995584cccd6fa8ca9efeb79bab1 /m4 | |
parent | 1fb205729747c2a77848d2ddf18c4ed720dc319c (diff) |
build-sys: properly quote m4 macro arguments in CC_CHECK_FLAGS_APPEND
The variables should be quoted inside [...] to avoid double macro
expansion. This is currently not an issue, since the values (-W...) are
not really macros, but we might as well just fix that issue now.
Tested by re-running autogen.sh and comparing the value of OUR_CFLAGS in
the generated Makefile. Ran a full build from a clean tree to confirm
no other issues were introduced.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/attributes.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/attributes.m4 b/m4/attributes.m4 index 97f094b07..4b0fcdce3 100644 --- a/m4/attributes.m4 +++ b/m4/attributes.m4 @@ -54,8 +54,8 @@ AC_DEFUN([CC_CHECK_FLAG_APPEND], [ dnl CC_CHECK_FLAGS_APPEND([WHERE-TO-APPEND], [ENV-VAR], [FLAG1 FLAG2]) AC_DEFUN([CC_CHECK_FLAGS_APPEND], [ - for flag in $3; do - CC_CHECK_FLAG_APPEND($1, $2, $flag) + for flag in [$3]; do + CC_CHECK_FLAG_APPEND([$1], [$2], $flag) done ]) |