This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Move info and gmo files to objdir
On Wed, Dec 13, 2006 at 04:29:12PM -0800, Khem Raj wrote:
> Hi Daniel
>
> here is the error message I m getting
>
> /bin/bash ../../gas/../ylwrap ../../gas/itbl-parse.y y.tab.c itbl-
> parse.c y.tab.h itbl-parse.h -- bison -y @YFLAGS@ -d
> /build_area/BUILD/mips2_fp_be/binutils-2.17.50/objdir/gas/ylwrap26031
> bison: extra operand `/build_area/BUILD/mips2_fp_be/binutils-2.17.50/
> objdir/gas/../../gas/itbl-parse.y'
> Try `bison --help' for more information.
> make[4]: *** [itbl-parse.c] Error 1
Autoconf 2.61 substitutes YFLAGS. Autoconf 2.59 does not. Does this
work?
--
Daniel Jacobowitz
CodeSourcery
2006-12-14 Daniel Jacobowitz <dan@codesourcery.com>
* Makefile.am (YFLAGS): Define.
* Makefile.in: Regenerated.
Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/gas/Makefile.am,v
retrieving revision 1.138
diff -u -p -r1.138 Makefile.am
--- Makefile.am 25 Oct 2006 06:49:20 -0000 1.138
+++ Makefile.am 14 Dec 2006 14:36:18 -0000
@@ -12,6 +12,10 @@ tooldir = $(exec_prefix)/$(target_alias)
YACC = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo @YACC@ ; fi`
LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo @LEX@ ; fi`
+# We have to set this, because autoconf 2.59 does not substitute YFLAGS.
+# Autoconf 2.61 does, so this can be removed when we upgrade.
+YFLAGS =
+
WARN_CFLAGS = @WARN_CFLAGS@
NO_WERROR = @NO_WERROR@
AM_CFLAGS = $(WARN_CFLAGS)
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gas/Makefile.in,v
retrieving revision 1.151
diff -u -p -r1.151 Makefile.in
--- Makefile.in 11 Dec 2006 15:09:42 -0000 1.151
+++ Makefile.in 14 Dec 2006 14:36:19 -0000
@@ -191,7 +191,10 @@ VERSION = @VERSION@
WARN_CFLAGS = @WARN_CFLAGS@
XGETTEXT = @XGETTEXT@
YACC = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo @YACC@ ; fi`
-YFLAGS = @YFLAGS@
+
+# We have to set this, because autoconf 2.59 does not substitute YFLAGS.
+# Autoconf 2.61 does, so this can be removed when we upgrade.
+YFLAGS =
ac_ct_CC = @ac_ct_CC@
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@