Subject: Dynamic linking is go (again)
To: None <port-dreamcast@netbsd.org>
From: Marcus Comstedt <marcus@mc.pp.se>
List: port-dreamcast
Date: 07/02/2003 17:57:42
Well, it seems like I have got dynamic linking to work on the
Dreamcast again.  So far I have only tried building libc as a dynamic
library and running some small programs linked against it, but it
looks promising.  Maybe someone with a little more free disk space
would like to try to make a dynamic world?

To enable dynamic linking on your system, get
<URL:http://mc.pp.se/dc/files/dynkit.tar.gz>
and unpack it in /.  Note that this overwrites the crt objects with
ones that are not compatible with the old gcc, so you'll need to stick
to gcc 3.3 afterwards.  It will still be possible to make static
binaries of course, by using 'gcc -static'.

You'll want to put the following lines into your /etc/mk.conf:

  CC=gcc
  HAVE_GCC3=yes
  MKPROFILE=no

Also, make sure that /usr/local/bin is before /usr/bin in your path,
so that you don't use the old toolchain by mistake.

In case somebody forgot where to find the gcc 3.3 toolchain, it's at
<URL:http://mc.pp.se/dc/files/gcc3.3toolchain_local.tar.bz2>.

Enjoy!


  // Marcus