From 147f02caffdf854cb53e2a023c894615a224f356 Mon Sep 17 00:00:00 2001 From: Kevin Lu <6320810+kevinlul@users.noreply.github.com> Date: Fri, 8 May 2020 02:32:21 -0400 Subject: [lua] Compile as position-independent code (#11163) --- ports/lua/CMakeLists.txt | 1 + ports/lua/CONTROL | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/lua/CMakeLists.txt b/ports/lua/CMakeLists.txt index dd0a1de35..fd04503f1 100644 --- a/ports/lua/CMakeLists.txt +++ b/ports/lua/CMakeLists.txt @@ -52,6 +52,7 @@ ENDIF () #DLL ADD_LIBRARY ( lua ${SRC_LIBLUA} ) +SET_PROPERTY (TARGET lua PROPERTY POSITION_INDEPENDENT_CODE ON) IF (COMPILE_AS_CPP) SET_TARGET_PROPERTIES(lua PROPERTIES OUTPUT_NAME "lua-c++") ENDIF() diff --git a/ports/lua/CONTROL b/ports/lua/CONTROL index 9e22f3ea2..d039fdad6 100644 --- a/ports/lua/CONTROL +++ b/ports/lua/CONTROL @@ -1,5 +1,5 @@ Source: lua -Version: 5.3.5-3 +Version: 5.3.5-4 Homepage: https://www.lua.org Description: a powerful, fast, lightweight, embeddable scripting language -- cgit v1.2.3