]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
lua: make it easier to detect host-built Lua
authorDaniel Golle <daniel@makrotopia.org>
Sat, 10 Jul 2021 19:21:26 +0000 (20:21 +0100)
committermaurerr <mariusd84@gmail.com>
Wed, 1 Sep 2021 08:08:18 +0000 (08:08 +0000)
Install pkg-config file also for host-build, clean up Lua symlinks.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: maurerr <mariusd84@gmail.com>
package/utils/lua/Makefile

index d262d1e1fc2bfa1772ff2a88e388346d4550106f..e15142d8d26e988a6fa1cecf27a3f8fad368b980 100644 (file)
@@ -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