[gnu.g++.bug] g++ for sVr3.2 on a 386

wsinpdb@eutws1.win.tue.nl (Paul de Bra) (02/26/90)

Here is my list of changes to g++1.36.4 to get it working with
AT&T System V release 3.2u.

First of all, let me state that this applies to g++1.36.4 only.
An earlier attempt to get g++1.36.0 running failed miserably.

This list only indecates how to get g++ up and running if you already
have gcc with the gnu assembler and gnu-ld running, and converted the
libraries to gnu format. g++ will not work with the AT&T loader.

First do the make maketest but you have to create a directory config
and links to the config files from gcc yourself as system v does not
have symbolic links (yet).

Do config.g++ i386-sysv-gas

Makefile
- do NOT define COFFFLAGS, as we do not use coff.
- define INSTALL=cp and LINK=ln as indicated in the Makefile.
- do not define CLIB=-lPW as gcc does not use it.
- use MALLOC=malloc.o, just to be sure.
- define all to be crt1+.o g++ cc1plus ld++ g++filt

cplus-dem.c
- This file needs USG defined. I just put a define on line 1.
  It obviously needs a better fix.

ld.c
- you don't need sys/time.h and sys/resource.h (I just commented them
  out, but you should use an ifdef).

malloc.c
- needs defines from config.h, so include it. (This include is ifdef-ed
  emacs, but shouldn't)

That's it.
Type make and you're going...

Now, libg++ still has a few problems, for instance in String.h.
Don't know yet what's needed to fix that.

Paul.
(debra@research.att.com)