🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52985

gcc-2.1 on sgi iris

#52985
From: Marc Van-Woerkom
Date: Sun, 29 Mar 1992 05:43
53 lines
1934 bytes
Hello!

This little script assembles gcc-2.1 on an Iris 4d. It's far from perfect,
but it seems to work. (Any comment is welcome)

mkgcc-2.1


#
# shellscript to compile gcc-2.1 (c,c++) on a sgi iris4d (MIPS)
#
#
# usage:  nohup csh mkgcc-2.1 &
#
#
# Marc van Woerkom, 29.3.92                Email: mv@ac.maus.de
# donated to the GNU project
#

# Note:  first apply those patches after
#        configure iris4d
#
#        xm-iris.h   add #define USE_C_ALLOCA 1
#        Makefile    change to  ALLOCA=alloca.o
#        colle2.c    change to  #define NM_FLAGS "-Bp"
#        Makefile    delete line with  INSTALL=install -c
#
#        The first three are from williams@herky.cs.uiowa.edu
#        and were intended for gcc-2.0. I can't justify them. :-)
#

make LANGUAGES=c >&st1
make stage1 >&st2
make CC=stage1/gcc CFLAGS="-g -O -Bstage1/" LANGUAGES="c c++" >&st3
/bin/rm -r stage1
make stage2 >&st4
make CC=stage2/gcc CFLAGS="-g -O -Bstage2/" LANGUAGES="c c++" >&st5

# Here should be something to compare stage 2 and 3, but how???

# provide the library in a searched dir
cp libgcc.a /usr/local/lib
mkdir /usr/local/lib/gcc-lib
mkdir /usr/local/lib/gcc-lib/iris4d
mkdir /usr/local/lib/gcc-lib/iris4d/2.1
make CC=stage2/gcc install >&st6
# remove the lib (yes, this is dirty :-)
/bin/rm /usr/local/lib/libgcc.a
make CC="stage2/gcc -O" install-collect2 >&st7
# The happy end..


Bye, Marc
Technical Details
Message-ID: <A44812@AC.maus.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!unido!uniol!hb.maus.de!ac.maus.de!Marc_Van-Woerkom

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,2532d8bc2defe08f,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-03-28 21:43:00 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!unido!uniol!hb.maus.de!ac.maus.de!Marc_Van-Woerkom
From: Marc_Van-Woerkom@ac.maus.de (Marc Van-Woerkom)
Newsgroups: gnu.gcc.help
Subject: gcc-2.1 on sgi iris
Message-ID: <A44812@AC.maus.de>
Date: 29 Mar 92 05:43:00 GMT
Organization: MausNet
Lines: 53
X-Gateway: MausGate/News 1.04