[tools] bison: make yacc wrapper relocatable
[openwrt/svn-archive/archive.git] / tools / bison / patches / 000-relocatable.patch
1 --- a/src/Makefile.am
2 +++ b/src/Makefile.am
3 @@ -77,6 +77,7 @@ MOSTLYCLEANFILES = yacc
4
5 yacc:
6 echo '#! /bin/sh' >$@
7 + echo 'test -n "$$STAGING_DIR" && exec "$$STAGING_DIR/../host/bin/bison" -y "$$@"' >>$@
8 echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@
9 chmod a+x $@
10
11 --- a/src/Makefile.in
12 +++ b/src/Makefile.in
13 @@ -1352,6 +1352,7 @@ uninstall-am: uninstall-binPROGRAMS unin
14
15 yacc:
16 echo '#! /bin/sh' >$@
17 + echo 'test -n "$$STAGING_DIR" && exec "$$STAGING_DIR/../host/bin/bison" -y "$$@"' >>$@
18 echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@
19 chmod a+x $@
20