summaryrefslogtreecommitdiff
path: root/mk/tools
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-12-22 18:55:41 +0000
committerjlam <jlam@pkgsrc.org>2005-12-22 18:55:41 +0000
commit6156dddfc7b7badd5b08d513181bd4769259815a (patch)
tree5eaf7e52db6959d09346ae1245caba30fba0934c /mk/tools
parent0acd04a5f6a16111fbe24f52f6a235a629dd5d3b (diff)
downloadpkgsrc-6156dddfc7b7badd5b08d513181bd4769259815a.tar.gz
If bison is used, always pass YACC="bison -y". This should fix
PR pkg/31493, where YACC="bison" was wrongly being passed to the configure script.
Diffstat (limited to 'mk/tools')
-rw-r--r--mk/tools/replace.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index e5f288cfac8..2018da75dff 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.144 2005/12/22 14:49:10 joerg Exp $
+# $NetBSD: replace.mk,v 1.145 2005/12/22 18:55:41 jlam Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -741,6 +741,13 @@ TOOLS_CREATE+= yacc
TOOLS_FIND_PREFIX+= TOOLS_PREFIX.yacc=bison
TOOLS_PATH.yacc= ${TOOLS_PREFIX.yacc}/bin/bison
TOOLS_ARGS.yacc= -y
+#
+# bison/yacc is typically a build tool whose path is not embedded in
+# any scripts or config files. In this case, pass the full command
+# line (path and arguments) of the tool to the GNU configure script
+# so that bison will be correctly invoked in yacc-compatilility mode.
+#
+TOOLS_VALUE_GNU.yacc= ${TOOLS_CMDLINE.yacc}
. endif
.endif