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
This commit is contained in:
ZyX 2014-06-30 23:34:37 +04:00 committed by Nicolas Hillegeer
parent d203c37e21
commit 4dadadd001

View File

@ -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)