aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Lu <6320810+kevinlul@users.noreply.github.com>2020-05-08 02:32:21 -0400
committerGitHub <noreply@github.com>2020-05-07 23:32:21 -0700
commit147f02caffdf854cb53e2a023c894615a224f356 (patch)
treec4763a196277928f1d70be93742dfd0d33104863
parent263ba43c6d8136d883d6ab253389e1695fed706c (diff)
downloadvcpkg-147f02caffdf854cb53e2a023c894615a224f356.tar.gz
vcpkg-147f02caffdf854cb53e2a023c894615a224f356.zip
[lua] Compile as position-independent code (#11163)
-rw-r--r--ports/lua/CMakeLists.txt1
-rw-r--r--ports/lua/CONTROL2
2 files changed, 2 insertions, 1 deletions
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