Skip to content

Commit

Permalink
lua: make it easier to detect host-built Lua
Browse files Browse the repository at this point in the history
Install pkg-config file also for host-build, clean up Lua symlinks.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  • Loading branch information
dangowrt committed Jul 10, 2021
1 parent 5e8eaac commit 315f52e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions package/utils/lua/Makefile
Expand Up @@ -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
Expand Down

0 comments on commit 315f52e

Please sign in to comment.