Subject: crosscompile attempt: solaris/x86 -> netbsd/sparc
To: None <tech-toolchain@netbsd.org>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: tech-toolchain
Date: 03/26/2002 19:23:26
I tried crossbuilding from solaris 8/x86 for a netbsd/sparc platform, and
it failed (surprise!). With the patch below, it gets to:

	...
	obj ===> tools/host-mkdep
	/bin/sh: bad substitution
	*** Error code 1

This is due to Solaris /bin/sh not understanding ${foo#bar}. Is there some
easy way around this (that can maybe even be automated)? Would be nice...


 - Hubert


P.S.: The following patch seems needed as well:

Index: tools/make/buildmake.sh.in
===================================================================
RCS file: /cvsroot/basesrc/tools/make/buildmake.sh.in,v
retrieving revision 1.2
diff -u -r1.2 buildmake.sh.in
--- buildmake.sh.in	2002/01/25 17:50:28	1.2
+++ buildmake.sh.in	2002/03/26 18:12:49
@@ -5,8 +5,8 @@
 #
 
 : ${HOST_CC=@CC@}
-: ${HOST_CFLAGS=@CPPFLAGS@ @CFLAGS@}
-: ${HOST_LDFLAGS=@LDFLAGS@ @LIBS@}
+: ${HOST_CFLAGS="@CPPFLAGS@ @CFLAGS@"}
+: ${HOST_LDFLAGS="@LDFLAGS@ @LIBS@"}
 : ${runcmd=}
 
 docmd () {

-- 
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
* Setup  -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html 
Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/