🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #607

Re: Sun3OS4 problems.... 1.36.1

#607
From: Doug Schmidt
Date: Tue, 21 Nov 1989 04:22
54 lines
2681 bytes
In article <1191@apctrc.UUCP>, zjat02@apctrc (Jon A. Tankersley) writes:
>There is mention to use GAS if it is available, but no explicit instructions
>as to how.....  

This is a good question.

>Any ideas?   Do I have to change something to make gcc/g++ use a68 and gnuld?

I think the easiest way to do this is as follows:

1. let's assume the appropriate part of your g++ Makefile looks like this:

----------------------------------------
prefix = /usr/gnu

# Directory where sources are, from where we are.
srcdir = .
# Directory in which to put the executable for the command `g++'
bindir = $(prefix)/bin
# Directory in which to put the subprograms used by the compiler.
libdir = $(prefix)/lib
# Directory in which to put the crt0+.o, crt1+.o, and other such files.
startdir = $(prefix)/lib
----------------------------------------

2. By default g++ will look for cc1plus in /usr/gnu/lib as the executable file
gcc-cc1plus.  What I've been doing is simply adding GNU as and GNU ld
in this same directory, as gcc-ld and gcc-as.  Here's what
/usr/gnu/lib looks like on my system (a Sun 4/260):

----------------------------------------
% ls /usr/gnu/lib
./              crt1+.o         gcc-cc1*        gcc-gpc1*       info/
../             flex.skel       gcc-cc1plus*    gcc-gpclib*     libg++.a*
bison.hairy     g++-include/    gcc-cpp*        gcc-include/
bison.simple    gcc-as*         gcc-gnulib*     gcc-ld*
----------------------------------------

When /usr/gnu/g++ looks for the assembler and linker it will choose
/usr/gnu/lib/gcc-ld and /usr/gnu/lib/gcc-as over /bin/ld and /bin/as
by default.

This method seems to work fairly well, though note that gcc will also
start using gas and GNU ld also (unless you take explicit steps to
avoid this).

Hope this helps,

  Doug
--
schmidt@ics.uci.edu (ARPA) |   Per me si va nella citta' dolente.
office: (714) 856-4043     |   Per me si va nell'eterno dolore.
                           |   Per me si va tra la perduta gente.
                           |   Lasciate ogni speranza o voi ch'entrate.
Technical Details
Message-ID: <1989Nov20.202254.10098@paris.ics.uci.edu>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!brutus.cs.uiuc.edu!jarthur!uci-ics!gateway
References: <1191@apctrc.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!brutus.cs.uiuc.edu!jarthur!uci-ics!gateway
From: schmidt@glacier.ics.uci.edu (Doug Schmidt)
Newsgroups: gnu.g++.bug
Subject: Re: Sun3OS4 problems....  1.36.1
Message-ID: <1989Nov20.202254.10098@paris.ics.uci.edu>
Date: 21 Nov 89 04:22:55 GMT
References: <1191@apctrc.UUCP>
Reply-To: schmidt@glacier.ics.uci.edu (Doug Schmidt)
Distribution: gnu
Organization: University of California, Irvine - Dept of ICS
Lines: 54
In-reply-to: zjat02@apctrc.trc.amoco.com (Jon A. Tankersley)