[lua] Compile as position-independent code (#11163)

This commit is contained in:
Kevin Lu 2020-05-08 02:32:21 -04:00 committed by GitHub
parent 263ba43c6d
commit 147f02caff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

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

View File

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