Can't be helped... java wants to build a pure parser, so bison

is mandatory for it.
This commit is contained in:
espie 2000-07-20 00:18:28 +00:00
parent 49c4114d7b
commit 3c070e1df8
3 changed files with 8 additions and 18 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.76 2000/07/19 21:20:57 espie Exp $
# $OpenBSD: Makefile,v 1.77 2000/07/20 00:18:28 espie Exp $
# This is a configuration file for egcs, snapshot flavor
# PLEASE use the regular egcs-stable for serious work, resort to this one
@ -38,7 +38,7 @@ PERMIT_DISTFILES_CDROM="Probably meaningless"
# cygnus packaging scheme is now working, though it is weird.
# namely, testsuite holds all the tests. g++-tests no longer exists,
# and g77-tests only holds duplicates from the main testsuite archive.
#MAKE_TESTS=yes
MAKE_TESTS=yes
MAKE_GXX=Yes
MAKE_FORTRAN=Yes
# we don't care about chill
@ -77,10 +77,15 @@ PATCH_LIST+=patch-java-*
MULTI_PACKAGES+=-java
.endif
.if defined(MAKE_TESTS)
.if defined(MAKE_TESTS) && ${MAKE_TESTS:L} == "yes"
BUILD_DEPENDS+= runtest::lang/egcs/dejagnu
.endif
# No way around it, java wants a pure parser
.if defined(MAKE_JAVA) && ${MAKE_JAVA:L} == "yes"
BUILD_DEPENDS+=bison::devel/bison
.endif
LATEST_DATE=2000-07-17
#### fetch section

View File

@ -1,4 +1,3 @@
# Enforce yacc even when the FSF wants bison
BISON=yacc
SET_BISON=bison=yacc

View File

@ -1,14 +0,0 @@
--- gcc/java/Make-lang.in.orig Wed Jul 5 22:52:37 2000
+++ gcc/java/Make-lang.in Thu Jul 20 01:54:21 2000
@@ -121,9 +121,9 @@ PARSE_RELDIR = .
PARSE_C = $(PARSE_DIR)/parse.c
PARSE_SCAN_C = $(PARSE_DIR)/parse-scan.c
-SET_BISON = here=`pwd`; sdir=`cd $(srcdir) && pwd`; if test -f ../bison; then bison="$$here/../bison/bison -L $$sdir"; else bison=bison; fi
+#SET_BISON = here=`pwd`; sdir=`cd $(srcdir) && pwd`; if test -f ../bison; then bison="$$here/../bison/bison -L $$sdir"; else bison=bison; fi
BISONFLAGS =
-JAVABISONFLAGS = --name-prefix=java_
+JAVABISONFLAGS = -p java_
$(PARSE_C): $(srcdir)/java/parse.y
$(SET_BISON); \