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.
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])