Browse Source

bison: replace the yacc script with one that does not hardcode the path (fixes #20605)

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 47050
Felix Fietkau 10 years ago
parent
commit
877f2972d4
2 changed files with 7 additions and 0 deletions
  1. 5 0
      tools/bison/Makefile
  2. 2 0
      tools/bison/scripts/yacc

+ 5 - 0
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))

+ 2 - 0
tools/bison/scripts/yacc

@@ -0,0 +1,2 @@
+#!/bin/sh
+exec bison -y "$@"