From 6eb61a6787ba5718679ee159d6f0a4f08416a092 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 18 Aug 2016 01:15:20 +0300 Subject: [PATCH] Fix compilation if configured with --enable-werror on OS X GC_init_dyld uses _dyld_bind_fully_image_containing_address() which is deprecated starting from OS X 10.5. * configure.ac (werror): Add -Wno-deprecated-declarations to WERROR_CFLAGS if host is darwin. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index b0701a4..bf03f45 100644 --- a/configure.ac +++ b/configure.ac @@ -904,6 +904,12 @@ AC_ARG_ENABLE(werror, [--enable-werror Pass -Werror to the C compiler], werror_flag=$enableval, werror_flag=no) if test x$werror_flag = xyes; then WERROR_CFLAGS="-Werror" + case "$host" in + # _dyld_bind_fully_image_containing_address is deprecated in OS X 10.5+ + *-*-darwin*) + WERROR_CFLAGS="$WERROR_CFLAGS -Wno-deprecated-declarations" + ;; + esac fi AC_SUBST([WERROR_CFLAGS]) -- 2.7.4