[gnu.gdb.bug] problem with multiple makes

alexande@CS.UNC.EDU (Geoffrey D. Alexander) (02/14/90)

I just tried to make gdb 3.5 on multiple systems.  I first ran the followiung
on a sparc station:

   config.dbx sun4os4
   make

This worked fine.  I then moved to a sun 3 and ran the following (in the same
directory):

   config.dbx sun3os4
   make

After a few minutes this failed due to

  ld: symmisc.o: wrong machine type

Running

   make clean
   make

seemed to recover.  Either `make' should clean up old files or the README file
should be updated saying that 'make clean' should be issued between makes of
gdb on different machines.

Another, minnor problem is that it was not clear to me that the `sparc' option
to config.gdb was just another name for `sun4os3'.  The option should be
changed to `sun3os3'.

It seems that the installation of gdb compiles with the -g option.  I should
think that it would be better to compile with the -O option (at least after
a trial test period).  Also, running strip on gdb will reduce the size.  Is
there a way to do this without modifying the makefile?

Geoff Alexander