From: Daniel Golle Date: Sat, 10 Jul 2021 19:21:26 +0000 (+0100) Subject: lua: make it easier to detect host-built Lua X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a60f0929561cd8c621daeb09dd07470fa7c5ff78;p=thirdparty%2Fopenwrt.git lua: make it easier to detect host-built Lua Install pkg-config file also for host-build, clean up Lua symlinks. Signed-off-by: Daniel Golle Signed-off-by: maurerr --- diff --git a/package/utils/lua/Makefile b/package/utils/lua/Makefile index d262d1e1fc2..e15142d8d26 100644 --- a/package/utils/lua/Makefile +++ b/package/utils/lua/Makefile @@ -134,8 +134,12 @@ define Host/Install INSTALL_TOP="$(STAGING_DIR_HOSTPKG)" \ install - $(LN) $(STAGING_DIR_HOSTPKG)/bin/lua5.1 $(STAGING_DIR_HOSTPKG)/bin/lua - $(LN) $(STAGING_DIR_HOSTPKG)/bin/luac5.1 $(STAGING_DIR_HOSTPKG)/bin/luac + $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/lib/pkgconfig + $(CP) $(HOST_BUILD_DIR)/etc/lua.pc $(STAGING_DIR_HOSTPKG)/lib/pkgconfig/lua5.1.pc + + $(LN) lua5.1 $(STAGING_DIR_HOSTPKG)/bin/lua + $(LN) luac5.1 $(STAGING_DIR_HOSTPKG)/bin/luac + $(LN) lua5.1.pc $(STAGING_DIR_HOSTPKG)/lib/pkgconfig/lua.pc endef define Build/InstallDev