🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42169

Re: building non-shared ( static ) progs under IRIX

#42169
From: Fergus Henderson
Date: Tue, 09 Jan 1996 00:00
24 lines
1555 bytes
garyh@sdsc.edu (Gary Hanyzewski) writes:

>	I can't get the -static gcc option ( for building non-shared 
>	executables ) to work correctly on SGI IRIX 5.3 machines using
>	either gcc 2.7.0 or 2.6.3.  Is there an undocumented 'magic'
>	trick to this?

You need to

	(1) compile all you objects with `-mno-abicalls'.
	(2) build a version of libgcc.a compiled with `-mno-abicalls',
	    and make sure you link with that.

A simple way to achieve (2) is to put a version of `libgcc.a' that has
been compiled with `-mno-abicalls' in /usr/lib/nonshared.  To create
that, you need to obtain a copy of the gcc source distribution, replace
the `-g1' with `-mno-abicalls' in the definition of LIBGCC2_CFLAGS in
the Makefile in the gcc source directory, type `make libgcc.a', and
then copy libgcc.a to /usr/lib/nonshared.  You may then need to compile
with `-L/usr/lib/nonshared'.

--
Fergus Henderson             	WWW: http://www.cs.mu.oz.au/~fjh
fjh@cs.mu.oz.au              	PGP: finger fjh@128.250.37.3
Technical Details
Message-ID: <9601002.28799@mulga.cs.mu.OZ.AU>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <821026579.25839@reabrook.demon.co.uk> <4crqeb$8mc@rosebud.sdsc.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,5bb1a6fdcb3e723e
X-Google-Attributes: gid11318c,public
From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: building non-shared ( static ) progs under IRIX
Date: 1996/01/09
Message-ID: <9601002.28799@mulga.cs.mu.OZ.AU>
X-Deja-AN: 134699101
sender: news@cs.mu.OZ.AU (CS-Usenet)
references: <821026579.25839@reabrook.demon.co.uk> <4crqeb$8mc@rosebud.sdsc.edu>
organization: Computer Science, University of Melbourne, Australia
newsgroups: gnu.gcc.help