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 <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2021-07-10 20:21:26 +01:00
parent 5e8eaac8c3
commit 315f52e0f3
No known key found for this signature in database
GPG Key ID: 5A8F39C31C3217CA
1 changed files with 6 additions and 2 deletions

View 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