Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
update libffi to 3.3 and fix a compilation problem
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Dec 12, 2019
1 parent 61f357e commit 9bfd9a3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Expand Up @@ -73,8 +73,14 @@ ExternalProject_Add(build_libFFI
UPDATE_COMMAND ""

GIT_REPOSITORY "https://github.com/libffi/libffi.git"
GIT_TAG "v3.3-rc0"
CONFIGURE_COMMAND "./autogen.sh" COMMAND ./configure "--target=${LIBFFI_TARGET}" "--disable-docs" "--prefix=${CMAKE_CURRENT_BINARY_DIR}/build/libffi/install" "CC=${CMAKE_C_COMPILER}" "CXX=${CMAKE_C_COMPILER}"
GIT_TAG "v3.3"
CONFIGURE_COMMAND "./autogen.sh" COMMAND ./configure
"--target=${LIBFFI_TARGET}"
"--disable-docs"
"--prefix=${CMAKE_CURRENT_BINARY_DIR}/build/libffi/install"
"${LIBFFI_EXTRA_PARAMETERS}"
"CC=${CMAKE_C_COMPILER}"
"CXX=${CMAKE_C_COMPILER}"
)

if(OSX)
Expand Down
2 changes: 2 additions & 0 deletions osx.cmake
Expand Up @@ -8,3 +8,5 @@ set(TEST_LIBRARY_DLL libTestLibrary.dylib)

set(DYLIB_EXT "*.dylib")

# In Esteban's machine this is needed. Maybe for all?
set(LIBFFI_EXTRA_PARAMETERS "CFLAGS=-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include")

0 comments on commit 9bfd9a3

Please sign in to comment.