Replace yacc call with bison

We are using bison to generate certain files when preparing the libc.
However the yacc(1) wrapper script is used instead of calling bison
directly which does not work if bison is not installed but the original
yacc(1).

Fixes #225. Fixes #227.
This commit is contained in:
Josef Söntgen 2012-06-01 11:12:36 +02:00 committed by Christian Helmuth
parent de162831cb
commit b6394495d3
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ PORTS += $(LIBC)
#
$(call check_tool,svn)
$(call check_tool,lex)
$(call check_tool,yacc)
$(call check_tool,bison)
#
# Subdirectories to check out from FreeBSD's Subversion repository
@ -403,7 +403,7 @@ libc_gen_nslexer: $(CONTRIB_DIR)/$(LIBC)/libc/net/nslexer.l
> $(CONTRIB_DIR)/$(LIBC)/libc/net/nslexer.c
libc_gen_nsparser: $(CONTRIB_DIR)/$(LIBC)/libc/net/nsparser.y
$(VERBOSE)$(YACC) -d -p_nsyy $< \
$(VERBOSE)bison -d -p_nsyy $< \
--defines=$(CONTRIB_DIR)/$(LIBC)/libc/net/nsparser.h \
--output=$(CONTRIB_DIR)/$(LIBC)/libc/net/nsparser.c