🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1898

Simple change to config-sun4.h for statically linking executables

#1898
From: Greg Onufer
Date: Fri, 28 Oct 1988 20:36
27 lines
1254 bytes
As distributed, gcc will not allow you to use the system linker
and create statically linked executables.  Here is my solutions, the
command line flag "-static".

-greg onufer

(Remember that config-sun4.h is for SunOS 4.0 and not Sun-4 machines)

Patch file config-sun4.h as follows:

 
*** /tmp/,RCSt1a12547	Fri Oct 28 13:27:12 1988
--- /tmp/,RCSt2a12547	Fri Oct 28 13:27:13 1988
***************
*** 9,12 ****
  
  /* Provide required defaults for linker -e and -d switches.  */
  
! #define LINK_SPEC "%{!e*:-e start} -dc -dp"
--- 9,12 ----
  
  /* Provide required defaults for linker -e and -d switches.  */
  
! #define LINK_SPEC "%{static:-Bstatic} %{!e*:-e start} -dc -dp"
-- 
Greg Onufer .. University of the Pacific .. Focus Semiconductor
.. exodus@cheers.uucp .. sun!daver!cheers!exodus .. 415-965-0604
Technical Details
Message-ID: <204@cheers.uucp>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!texbell!bigtex!natinst!cs.utexas.edu!tut.cis.ohio-state.edu!mailrus!ames!vsi1!daver!cheers!root

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!texbell!bigtex!natinst!cs.utexas.edu!tut.cis.ohio-state.edu!mailrus!ames!vsi1!daver!cheers!root
From: root@cheers.uucp (Greg Onufer)
Newsgroups: gnu.gcc.bug
Subject: Simple change to config-sun4.h for statically linking executables
Message-ID: <204@cheers.uucp>
Date: 28 Oct 88 20:36:01 GMT
Distribution: gnu
Organization: Cheers Bar & Grill, Boston
Lines: 26