aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2014-06-30 23:34:37 +0400
committerNicolas Hillegeer <nicolas@hillegeer.com>2014-07-25 21:13:44 +0200
commit4dadadd0015b6efb31869cca52d6bae36762c36e (patch)
tree39ac14e299d72f272286a5f625b74bba06ae1bc3
parentd203c37e211f7ea540f54f8ebc2670aec9b66396 (diff)
downloadrneovim-4dadadd0015b6efb31869cca52d6bae36762c36e.tar.gz
rneovim-4dadadd0015b6efb31869cca52d6bae36762c36e.tar.bz2
rneovim-4dadadd0015b6efb31869cca52d6bae36762c36e.zip
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
-rw-r--r--third-party/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
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)