Subject: -nostdlib and cross packages
To: None <>
From: Castor Fu <>
List: tech-toolchain
Date: 07/05/1999 20:52:58
I'm trying to conform and use the cross packages for
cross compiling on NetBSD instead of my home grown stuff and have 
come across two problems so far.  I'm rebuilding again, so we'll
see how much further I get, but I thought I'd see if people
have seen these problems.


1.  -nostdlib is not supported in the version of GNU ld which
	it builds.  I have a set of patches which I think
	work.  I'd be happy to put them in if that makes sense, but
	there are a bunch of them.

2.  The exclude mechanism seems to break some of GNU tar's option
	processing.  The following diff fixes this.  It seems like
	tar is just broken here, in its option processing, so I don't
	see how this worked elsewhere.  (I'm running straight

(net300) cat ~/
---  Mon Jul  5 20:47:02 1999
+++ /pkgsrc/mk/       Thu Apr 29 07:27:28 1999
@@ -294,7 +294,7 @@
 .if defined(EXTRACT_USING_PAX)
if=/dev/zero bs=10k count=2) | ${PAX} -r ${EXTRACT_ELEMENTS}
/usr/bin/tar -xf - ${EXTRACT_ELEMENTS}
/usr/bin/tar xf - ${EXTRACT_ELEMENTS}
 # Figure out where the local mtree file is