[OpenWrt-Devel] [PATCH] flex: Add a lex symlink

Rosen Penev rosenp at gmail.com
Tue Nov 13 15:59:47 EST 2018


Some packages like libpfring assume the presense of lex, which on some
other systems is a symlink to flex but not all. Symlink flex to fix
compilation.

Arch Linux and Fedora do this as far as I know.

Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 tools/flex/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/flex/Makefile b/tools/flex/Makefile
index 1eff81f345..bb5aecbdfe 100644
--- a/tools/flex/Makefile
+++ b/tools/flex/Makefile
@@ -21,6 +21,11 @@ include $(INCLUDE_DIR)/host-build.mk
 
 HOST_CONFIGURE_ARGS += --disable-shared
 
+define Host/Install
+	$(call Host/Install/Default)
+	$(LN) flex $(STAGING_DIR_HOST)/bin/lex
+endef
+
 define Host/Clean
 	-$(MAKE) -C $(HOST_BUILD_DIR) uninstall
 	$(call Host/Clean/Default)
-- 
2.19.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list