Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Recently, curl's configure script was changed to unconditionally
add '-Werror=partial-availability' to the CFLAGS if $host_os is
This breaks compilation using diorcety's crosstool-ng, which
doesn't know about that option. And it probably breaks lots of
other older compilers.
Please check that the C compiler actually understands a given
option before adding it to the CFLAGS. For example:
AC_MSG_CHECKING([whether $CC accepts -Werror=partial-availability])
The text was updated successfully, but these errors were encountered:
So what about -mmacosx-version-min, is that also going to cause problems?
Sorry, something went wrong.
Just checking if -Werror=partial-availability works:
diff --git a/acinclude.m4 b/acinclude.m4
index f959e3d..2abae8d 100644
@@ -3230,9 +3230,16 @@ AC_DEFUN([CURL_MAC_CFLAGS], [
if test -z "$min"; then
AC_MSG_RESULT([set by user])
+ AC_MSG_CHECKING([whether $CC accepts -Werror=partial-availability])
-mmacosx-version-min works for me; it seems to me that's been around for quite a while so it's probably safe. But I'm not sure.
Thanks! Ok let's leave -mmacosx-version-min for now and see if people report anything. Pushed the fix for -Werror=partial-availability.
No branches or pull requests