Skip to content

Commit 5a157eb

Browse files
committed
Bugfix: configure: Only avoid -isystem for exact /usr/include path
1 parent 556ee6f commit 5a157eb

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)