mirror of
https://github.com/moparisthebest/curl
synced 2025-01-09 13:08:00 -05:00
parent
3be5ebf303
commit
5d2c384452
29
acinclude.m4
29
acinclude.m4
@ -2580,14 +2580,13 @@ TEST EINVAL TEST
|
|||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl CURL_MAC_CFLAGS
|
dnl CURL_DARWIN_CFLAGS
|
||||||
dnl
|
dnl
|
||||||
dnl Check if -mmacosx-version-min, -miphoneos-version-min or any
|
dnl Set -Werror=partial-availability to detect possible breaking code
|
||||||
dnl similar are set manually, otherwise do. And set
|
dnl with very low deployment targets.
|
||||||
dnl -Werror=partial-availability.
|
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
AC_DEFUN([CURL_MAC_CFLAGS], [
|
AC_DEFUN([CURL_DARWIN_CFLAGS], [
|
||||||
|
|
||||||
tst_cflags="no"
|
tst_cflags="no"
|
||||||
case $host_os in
|
case $host_os in
|
||||||
@ -2596,28 +2595,10 @@ AC_DEFUN([CURL_MAC_CFLAGS], [
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_MSG_CHECKING([for good-to-use Mac CFLAGS])
|
AC_MSG_CHECKING([for good-to-use Darwin CFLAGS])
|
||||||
AC_MSG_RESULT([$tst_cflags]);
|
AC_MSG_RESULT([$tst_cflags]);
|
||||||
|
|
||||||
if test "$tst_cflags" = "yes"; then
|
if test "$tst_cflags" = "yes"; then
|
||||||
AC_MSG_CHECKING([for *version-min set by user])
|
|
||||||
min=""
|
|
||||||
if test -n "$IPHONEOS_DEPLOYMENT_TARGET"; then
|
|
||||||
var="IPHONEOS_DEPLOYMENT_TARGET"
|
|
||||||
elif test -n "$MACOSX_DEPLOYMENT_TARGET"; then
|
|
||||||
var="MACOSX_DEPLOYMENT_TARGET"
|
|
||||||
elif test -z "$(echo $CFLAGS $CC | grep m.*os.*-version-min)"; then
|
|
||||||
min="-mmacosx-version-min=10.8"
|
|
||||||
CFLAGS="$CFLAGS $min"
|
|
||||||
else
|
|
||||||
var="CFLAGS or CC"
|
|
||||||
fi
|
|
||||||
if test -z "$min"; then
|
|
||||||
AC_MSG_RESULT([set by user in $var])
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT([$min set])
|
|
||||||
fi
|
|
||||||
|
|
||||||
old_CFLAGS=$CFLAGS
|
old_CFLAGS=$CFLAGS
|
||||||
CFLAGS="$CFLAGS -Werror=partial-availability"
|
CFLAGS="$CFLAGS -Werror=partial-availability"
|
||||||
AC_MSG_CHECKING([whether $CC accepts -Werror=partial-availability])
|
AC_MSG_CHECKING([whether $CC accepts -Werror=partial-availability])
|
||||||
|
Loading…
Reference in New Issue
Block a user