Subject: -nostdlib and cross packages
To: None <tech-toolchain@netbsd.org>
From: Castor Fu <castor@geocast.com>
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.

	-castor

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
	NetBSD-1.4/i386.)

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