mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-31 02:17:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 5fc717aa60b36934892d6d77c0637fc53aa7f761 Mon Sep 17 00:00:00 2001
 | |
| From: Daniel Golle <daniel@makrotopia.org>
 | |
| Date: Sat, 10 Jul 2021 20:21:26 +0100
 | |
| Subject: [PATCH 27/27] 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>
 | |
| (cherry picked from commit 315f52e0f3bfa3d65ad14ca21a696c6d31c4edcd)
 | |
| ---
 | |
|  package/utils/lua/Makefile | 8 ++++++--
 | |
|  1 file changed, 6 insertions(+), 2 deletions(-)
 | |
| 
 | |
| diff --git a/package/utils/lua/Makefile b/package/utils/lua/Makefile
 | |
| index d262d1e1fc..e15142d8d2 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
 | |
| -- 
 | |
| 2.25.1
 | |
| 
 | 
