🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #10101

GDB 3.5 Makefile runs afoul of SunOS 4.1

#10101
From: Paul Eggert
Date: Sat, 05 May 1990 22:45
26 lines
1264 bytes
The Makefile.dist for GDB version 3.5 contains the line

	TARGET_ARCH=

This doesn't work under SunOS 4.1.   The target option is now `-target sun4',
not `-sun4', and the default rule for compiling is now roughly

	COMPILE.c=$(CC) $(CFLAGS) $(CPPFLAGS) -target $(TARGET_ARCH:-%=%) -c
	.c.o:
		$(COMPILE.c) $<

When you try to compile GDB 3.5 with this new rule, it generates a command
of the form

	cc ... -target -c ...

which isn't valid.  The simplest fix to this problem is to change the
Makefile.dist line

	TARGET_ARCH=

to

	COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c

which should work for both SunOS 4.0.3 and SunOS 4.1.
Technical Details
Message-ID: <9005052245.AA02221@spot.twinsun.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!snorkelwacker!tut.cis.ohio-state.edu!spot.twinsun.com!eggert

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,e5db75b93661a0bb,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1990-05-05 23:53:59 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!snorkelwacker!tut.cis.ohio-state.edu!spot.twinsun.com!eggert
From: eggert@spot.twinsun.com (Paul Eggert)
Newsgroups: gnu.gdb.bug
Subject: GDB 3.5 Makefile runs afoul of SunOS 4.1
Message-ID: <9005052245.AA02221@spot.twinsun.com>
Date: 5 May 90 22:45:42 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 26
Posted: Sat May  5 23:45:42 1990