Skip to content

Commit 556ee6f

Browse files
committed
Bugfix: configure: Quote SUPPRESS_WARNINGS sufficiently to preserve brackets
The regex includes [/ ] which is supposed to match either a forward slash or a space, but m4 treats the brackets as special characters and effectively strips them out, leading to -isystem /usr/include paths except for in the typical scenario where it is the final parameter in the flag string.
1 parent 831675c commit 556ee6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ dnl Do not change "-I/usr/include" to "-isystem /usr/include" because that
11751175
dnl is not necessary (/usr/include is already a system directory) and because
11761176
dnl it would break GCC's #include_next.
11771177
AC_DEFUN([SUPPRESS_WARNINGS],
1178-
[$(echo $1 |${SED} -E -e 's/(^| )-I/\1-isystem /g' -e 's;-isystem /usr/include([/ ]|$);-I/usr/include\1;g')])
1178+
[[$(echo $1 |${SED} -E -e 's/(^| )-I/\1-isystem /g' -e 's;-isystem /usr/include([/ ]|$);-I/usr/include\1;g')]])
11791179

11801180
dnl enable-fuzz should disable all other targets
11811181
if test "x$enable_fuzz" = "xyes"; then

0 commit comments

Comments
 (0)