Subject: Re: Cross compile from NetBSD/i386?
To: None <scotte@warped.com, port-sun3@NetBSD.ORG, port-mac68k@NetBSD.ORG>
From: Ian Dall <Ian.Dall@dsto.defence.gov.au>
List: port-mac68k
Date: 01/13/1997 10:06:15
Scott Ellis <scotte@warped.com> writes:

  > Well, I've got gcc 2.7.2.1, binutils 2.7, and make installed, and
  > configured for m68k, and it seems to mostly work.

  > I can compile statically linked m68k bins, or object files (which I can
  > later dynamically link on the Sun3), but I can't seem to get it to build
  > shared libs, or to link dynamically (I'm using the NetBSD/Sun3 1.2 libs
  > to link against, until I can get -current libs built).

  > Any ideas here?

  > It was suggested to try NetBSD's as and ld, but I have a feeling these
  > won't be fun to build in a cross-compile environment. ;-) 

It isn't *too* bad. I can give you patches for the NetBSD as and ld if you
want. The cross endian support is in there but broken.

Your only other alternatives I can think of are:
 a) Get the current binutils
    to support NetBSD dynamically linked libraries. They are supposed
    to work for SunOS.

 b) Do the work to migrate to elf in which case I understand shared libs
    come more or less for free.


Compared to these admittedly nicer alternatives, getting the NetBSD
utilities working in a cross environment is easy!

Ian