From: Rosen Penev Date: Tue, 13 Nov 2018 20:59:47 +0000 (-0800) Subject: flex: Add a lex symlink X-Git-Tag: v18.06.2~71 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0340d3ad2d1b6bdc9c58e242d987dd92a98d0db1;p=openwrt%2Fstaging%2Fpepe2k.git flex: Add a lex symlink 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 (backported from 7ef38e42c8440a29d1dc721a9e6184b2e369bc2f) --- 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)