From dd70b3b7531ca8cabb5aadcd52606172bf187e50 Mon Sep 17 00:00:00 2001 From: Danomi Manchego Date: Mon, 28 Jul 2014 21:35:34 -0400 Subject: [PATCH] flex: delete broken flex++ symlink from target When flex is built for the target without installing the flex binary, a flex++ symlink installed by flex's Makefile points to the missing flex executable. This mod adds a post target install hook to remove the broken symlink. Signed-off-by: Danomi Manchego Signed-off-by: Thomas Petazzoni --- package/flex/flex.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/flex/flex.mk b/package/flex/flex.mk index 17f651b802..cd92dd7b00 100644 --- a/package/flex/flex.mk +++ b/package/flex/flex.mk @@ -29,6 +29,12 @@ define FLEX_DISABLE_PROGRAM endef FLEX_POST_PATCH_HOOKS += FLEX_DISABLE_PROGRAM +# flex++ symlink is broken when flex binary is not installed +define FLEX_REMOVE_BROKEN_SYMLINK + rm -f $(TARGET_DIR)/usr/bin/flex++ +endef +FLEX_POST_INSTALL_TARGET_HOOKS += FLEX_REMOVE_BROKEN_SYMLINK + endif $(eval $(autotools-package)) -- 2.30.2