From fb5ad9839ee1ef7202240605d4d83c93788ce47a Mon Sep 17 00:00:00 2001 From: Nicolas Vasilache Date: Wed, 10 Aug 2016 05:15:15 -0400 Subject: [PATCH] Add rule for static version of libluajit-2.1 --- luajit-2.1/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/luajit-2.1/CMakeLists.txt b/luajit-2.1/CMakeLists.txt index eac0894..c59eae9 100644 --- a/luajit-2.1/CMakeLists.txt +++ b/luajit-2.1/CMakeLists.txt @@ -369,8 +369,12 @@ include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR} dynasm src) IF(WITH_AMALG) add_library(libluajit SHARED src/ljamalg.c ${DEPS} ) + add_library(luajit-static STATIC src/ljamalg.c ${DEPS} ) + set_property(TARGET luajit-static PROPERTY POSITION_INDEPENDENT_CODE 1) ELSE() add_library(libluajit SHARED ${SRC_LJCORE} ${DEPS} ) + add_library(luajit-static STATIC ${SRC_LJCORE} ${DEPS} ) + set_property(TARGET luajit-static PROPERTY POSITION_INDEPENDENT_CODE 1) ENDIF() target_link_libraries (libluajit ${LIBS} )