From 877f2972d4d8f63644f18688cff7efd7ce280f2b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 26 Sep 2015 21:10:48 +0000 Subject: [PATCH] bison: replace the yacc script with one that does not hardcode the path (fixes #20605) Signed-off-by: Felix Fietkau SVN-Revision: 47050 --- tools/bison/Makefile | 5 +++++ tools/bison/scripts/yacc | 2 ++ 2 files changed, 7 insertions(+) create mode 100755 tools/bison/scripts/yacc diff --git a/tools/bison/Makefile b/tools/bison/Makefile index 10d87204841..256512116f9 100644 --- a/tools/bison/Makefile +++ b/tools/bison/Makefile @@ -23,4 +23,9 @@ define Host/Clean $(call Host/Clean/Default) endef +define Host/Install + $(call Host/Install/Default) + $(INSTALL_BIN) ./scripts/yacc $(STAGING_DIR_HOST)/bin/yacc +endef + $(eval $(call HostBuild)) diff --git a/tools/bison/scripts/yacc b/tools/bison/scripts/yacc new file mode 100755 index 00000000000..8f73e26fb13 --- /dev/null +++ b/tools/bison/scripts/yacc @@ -0,0 +1,2 @@ +#!/bin/sh +exec bison -y "$@"