aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2021-12-31 10:19:57 +0000
committerPaul Spooren <mail@aparcar.org>2022-01-03 10:34:31 +0100
commit6ba8d510b89c97230f216a9a7be4b1cd158182a6 (patch)
treea200cb32f019586b551515583be44688041d15b6 /package/utils
parent1e4469b090a7e3234345c1b7f17c956ec7dc0b81 (diff)
downloadupstream-6ba8d510b89c97230f216a9a7be4b1cd158182a6.tar.gz
upstream-6ba8d510b89c97230f216a9a7be4b1cd158182a6.tar.bz2
upstream-6ba8d510b89c97230f216a9a7be4b1cd158182a6.zip
lua: add HOST_FPIC for host builds
Compiling without fPIC causes linking issues for packages using liblua. Add $(HOST_FPIC) to host builds for both lua and lua5.3. Suggested-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to 'package/utils')
-rw-r--r--package/utils/lua/Makefile4
-rw-r--r--package/utils/lua5.3/Makefile4
2 files changed, 4 insertions, 4 deletions
diff --git a/package/utils/lua/Makefile b/package/utils/lua/Makefile
index e15142d8d2..279759e972 100644
--- a/package/utils/lua/Makefile
+++ b/package/utils/lua/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=lua
PKG_VERSION:=5.1.5
-PKG_RELEASE:=9
+PKG_RELEASE:=10
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.lua.org/ftp/ \
@@ -125,7 +125,7 @@ endif
define Host/Compile
$(MAKE) -C $(HOST_BUILD_DIR) \
- CC="$(HOSTCC) -std=gnu99" \
+ CC="$(HOSTCC) $(HOST_FPIC) -std=gnu99" \
$(LUA_OS)
endef
diff --git a/package/utils/lua5.3/Makefile b/package/utils/lua5.3/Makefile
index c9e9bebb1a..19f3b4dfda 100644
--- a/package/utils/lua5.3/Makefile
+++ b/package/utils/lua5.3/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=lua
PKG_VERSION:=5.3.5
-PKG_RELEASE:=4
+PKG_RELEASE:=5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.lua.org/ftp/ \
@@ -110,7 +110,7 @@ endif
define Host/Compile
$(MAKE) -C $(HOST_BUILD_DIR) \
- CC="$(HOSTCC) -std=gnu99" \
+ CC="$(HOSTCC) $(HOST_FPIC) -std=gnu99" \
$(LUA_OS)
endef