mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
configure: verify that compiler groks -Werror=partial-availability
Reported-by: bemoody Fixes #1104
This commit is contained in:
parent
c8e6e60b40
commit
6724242cf1
@ -3232,7 +3232,14 @@ AC_DEFUN([CURL_MAC_CFLAGS], [
|
||||
else
|
||||
AC_MSG_RESULT([$min set])
|
||||
fi
|
||||
|
||||
old_CFLAGS=$CFLAGS
|
||||
CFLAGS="$CFLAGS -Werror=partial-availability"
|
||||
AC_MSG_CHECKING([whether $CC accepts -Werror=partial-availability])
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
CFLAGS=$old_CFLAGS])
|
||||
fi
|
||||
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user