Skip to content

Commit

Permalink
CMake: Build libffi as a static library
Browse files Browse the repository at this point in the history
This is inline with changes already made to UMA. See eclipse-openj9#1900

Signed-off-by: Devin Nakamura <devinn@ca.ibm.com>
  • Loading branch information
dnakamura committed Nov 13, 2018
1 parent aa0e497 commit 11a759a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions runtime/libffi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
################################################################################

add_library(ffi SHARED
add_library(ffi STATIC
closures.c
debug.c
java_raw_api.c
prep_cif.c
raw_api.c
types.c

)

# We need this because ffi_common.h is in 'include' in the top directory.
Expand Down Expand Up @@ -97,8 +96,3 @@ elseif(OMR_ARCH_POWER)
endif()
target_include_directories(ffi PUBLIC powerpc)
endif()

install(
TARGETS ffi
LIBRARY DESTINATION ${j9vm_SOURCE_DIR}
)

0 comments on commit 11a759a

Please sign in to comment.