Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8248495: [macos] zerovm is broken due to libffi headers location
Reviewed-by: ihse, erikj
  • Loading branch information
Vladimir Kempik committed Jul 2, 2020
1 parent 1eaa411 commit 78b9de8e40797cf4199b73d1b8a84b3fd215dd79
Showing 1 changed file with 14 additions and 0 deletions.
@@ -87,6 +87,20 @@ AC_DEFUN_ONCE([LIB_SETUP_LIBFFI],
[LIBFFI_FOUND=no]
)
fi
# on macos we need a special case for system's libffi as
# headers are located only in sdk in $SYSROOT and in ffi subfolder
if test "x$LIBFFI_FOUND" = xno; then
if test "x$SYSROOT" != "x"; then
AC_CHECK_HEADER([$SYSROOT/usr/include/ffi/ffi.h],
[
LIBFFI_FOUND=yes
LIBFFI_CFLAGS="-I${SYSROOT}/usr/include/ffi"
LIBFFI_LIBS=-lffi
],
[LIBFFI_FOUND=no]
)
fi
fi
if test "x$LIBFFI_FOUND" = xno; then
HELP_MSG_MISSING_DEPENDENCY([ffi])
AC_MSG_ERROR([Could not find libffi! $HELP_MSG])

0 comments on commit 78b9de8

Please sign in to comment.