Skip to content

Commit

Permalink
Disable the position independent codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad2001MFS committed Oct 5, 2023
1 parent 0564f33 commit 52e3418
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,11 @@ message(STATUS "STATIC_BUILD: ${STATIC_BUILD}")
if (STATIC_BUILD)
# XXX: Uncomment only after build with XRAY_STATIC_BUILD is fixed
add_definitions(-DXRAY_STATIC_BUILD)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(LIBS_LINK_TYPE STATIC)
set(LUABIND_BUILD_SHARED OFF) # xrLuaBind
set(BUILD_STATIC_LIB ON) # LuaJIT
set(BUILD_DYNAMIC_LIB OFF) # LuaJIT
else()
set(CMAKE_POSITION_INDEPENDENT_CODE OFF)
set(LIBS_LINK_TYPE SHARED)
endif()

Expand Down

0 comments on commit 52e3418

Please sign in to comment.