This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Build problems with CVS under Solaris 8/SPARC


 > From: Alexandre Oliva <aoliva@redhat.com>
 > 
 > On Oct 13, 2000, "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> wrote:
 > 
 > > Just so I understand things, are you building gcc within its srcdir or
 > > do you have separate src and build directories?
 > 
 > The problem is that a relative $(srcdir) won't work since you're
 > already within srcdir.  The patch looks good to me.  Kaveh, will you
 > please double-check that there are no other occurrences of this
 > problem in the patch you had posted?  Thanks,

Using PARSE_C/PARSE_H was my mistake.  Alberts patch perpetuates that.
http://gcc.gnu.org/ml/gcc/2000-10/msg00348.html

I'd rather do the following: we're already in the srcdir, just mv the
temp file to the real file without any path prefix.

All the other parts of my original patch use this mechanism and work
fine.  I tested it by building cp/parse.[ch] when configuring in a
subdir of the srcdir, no problems.  Okay to install?

		--Kaveh


2000-10-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* Makefile.in (parse.c, parse.h): Fix think-o in last patch.

diff -rup orig/egcs-CVS20001014/gcc/cp/Makefile.in egcs-CVS20001014/gcc/cp/Makefile.in
--- orig/egcs-CVS20001014/gcc/cp/Makefile.in	Fri Oct 13 12:10:23 2000
+++ egcs-CVS20001014/gcc/cp/Makefile.in	Sat Oct 14 09:27:52 2000
@@ -227,7 +227,7 @@ $(PARSE_H) $(PARSE_C) : $(srcdir)/parse.
 	@echo $(CONFLICTS)
 	cd $(srcdir); $(BISON) $(BISONFLAGS) -d -o p$$$$.c parse.y ; \
 	grep '^#define[ 	]*YYEMPTY' p$$$$.c >> p$$$$.h ; \
-	mv -f p$$$$.c $(PARSE_C) ; mv -f p$$$$.h $(PARSE_H)
+	mv -f p$$$$.c parse.c ; mv -f p$$$$.h parse.h
 #$(PARSE_C) $(PARSE_H) : stamp-parse ; @true
 #stamp-parse: $(srcdir)/parse.y
 #	@echo $(CONFLICTS)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]