Path: 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 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