From 4dadadd0015b6efb31869cca52d6bae36762c36e Mon Sep 17 00:00:00 2001 From: ZyX Date: Mon, 30 Jun 2014 23:34:37 +0400 Subject: build: Compile static luajit lib with -fPIC #996 Should fix the following travis error: /usr/bin/ld: /opt/neovim-deps/lib/libluajit-5.1.a(lj_err.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /opt/neovim-deps/lib/libluajit-5.1.a: could not read symbols: Bad value --- third-party/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt index 65b34ed642..692cc1b4bf 100644 --- a/third-party/CMakeLists.txt +++ b/third-party/CMakeLists.txt @@ -115,6 +115,7 @@ if(USE_BUNDLED_LUAJIT) BUILD_COMMAND "" INSTALL_COMMAND ${MAKE_PRG} CC=${CMAKE_C_COMPILER} PREFIX=${DEPS_INSTALL_DIR} + CFLAGS=-fPIC BUILDMODE=static install) list(APPEND THIRD_PARTY_DEPS luajit) -- cgit