Subject: pkg/18309
To: None <netbsd-bugs@netbsd.org>
From: Alex Newman <dolemite@wuli.nu>
List: netbsd-bugs
Date: 09/18/2002 16:45:00
This is a multi-part message in MIME format.
--------------5387413694F14D47EBD9C400
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Ok so i got gcc to build on my system by doing the following two
patches:
--------------5387413694F14D47EBD9C400
Content-Type: text/plain; charset=us-ascii;
 name="patch-ad"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch-ad"

--- ../gcc-2.95.3/libiberty/Makefile.in.orig	Wed Sep 18 15:23:49 2002
+++ ../gcc-2.95.3/libiberty/Makefile.in	Wed Sep 18 15:24:08 2002

@@ -108,10 +108,10 @@
 
 COMPILE.c = $(CC) -c @DEFS@ @ac_libiberty_warn_cflags@ $(LIBCFLAGS) $(HDEFINES) -I. -I$(INCDIR)
 .c.o:
-	if [ x"$(PICFLAG)" != x ]; then \
+#	if [ x"$(PICFLAG)" != x ]; then \
 	  $(COMPILE.c) $(PICFLAG) $< -o pic/$@; \
-	else true; fi
-	$(COMPILE.c) $<
+#	else true; fi
+#	$(COMPILE.c) $<
 
 info: info-subdir
 install-info: install-info-subdir
@@ -188,9 +188,9 @@
 	echo $(REQUIRED_OFILES) > required-list
 
 stamp-picdir:
-	if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \
-	  mkdir pic; \
-	else true; fi
+#	if [ x"$(PICFLAG)" != x ] && [ ! -d pic ]; then \
+#	  mkdir pic; \
+#	else true; fi
 	touch stamp-picdir
 
 .PHONY: all etags tags ls clean stage1 stage2

--------------5387413694F14D47EBD9C400
Content-Type: text/plain; charset=us-ascii;
 name="patch-ae"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch-ae"

--- ../gcc-2.95.3/libstdc++/Makefile.in.orig	Wed Sep 18 15:13:02 2002
+++ ../gcc-2.95.3/libstdc++/Makefile.in	Wed Sep 18 15:13:17 2002
@@ -99,7 +99,7 @@
 	@$(MAKE) $(MARLINK) "ARLINK=$(MARLINK)"
 
 $(SHLIB): piclist
-	$(CC) $(LIBCXXFLAGS) $(SHFLAGS) -shared -o $(SHLIB) `cat piclist` $(SHDEPS)
+	$(CC) $(LIBCXXFLAGS) $(SHFLAGS) -shared -o $(SHLIB) $(SHDEPS)
 
 $(SHARLIB): $(SHLIB)
 	-rm -f t$(SHARLIB)

--------------5387413694F14D47EBD9C400--