Article View: gnu.gcc.help
Article #51447Re: shared X libraries for SunOS ?
From: Philip Guenther
Date: Mon, 17 May 1993 19:57
Date: Mon, 17 May 1993 19:57
27 lines
1800 bytes
1800 bytes
>>>>> On 17 May 1993 14:12:09 GMT, ivo@tiger (Ivo Hofacker) said:
> This has probably come up before:
> When building X11R5 shared libraries with gcc, clients built with cc
> fail because libgcc.a is not linked in. The problem could probably
> be solved by including part or all of libgcc.a in those libraries.
> Has anybody tried this ? --
Yeah, we did that here. The solution was to add the following line to
.../mit/lib/X/Imakefile. It tells ld to link in the required routines
from libgcc.a.
REQUIREDLIBS= `gcc -v 2>&1 | awk '{print $$4}' | sed -e 's/specs$$/libgcc.a/'`
This solution is actually from the Solaris 2 patches to X, but it'll
work under Sunos4.* too. They really ought to just say this to the
README.X11 that comes with gcc. They patch everything else in that
patch.
Philip Guenther
Student System Programmer
--
guenther@stolaf.edu (Philip Guenther) St Olaf College, Northfield, MN 55057
(setq sig-hook '(lambda () (gnus-insert-disclaimer organization 'student)))
"To go outside the mythos is to become insane...." -Robert Pirsig
Technical Details
Message-ID:
<GUENTHER.93May17145727@lars.stolaf.edu>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!ux1.cso.uiuc.edu!uchinews!raistlin!uc.msc.edu!news.stolaf.edu!guentherReferences:
<1t86fp$m7s@infosrv.edvz.univie.ac.at>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,154393dfe8675615 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-05-17 14:59:51 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!ux1.cso.uiuc.edu!uchinews!raistlin!uc.msc.edu!news.stolaf.edu!guenther From: guenther@stolaf.edu (Philip Guenther) Subject: Re: shared X libraries for SunOS ? In-Reply-To: ivo@tiger's message of 17 May 1993 14:12:09 GMT Message-ID: <GUENTHER.93May17145727@lars.stolaf.edu> Lines: 27 Sender: news@news.stolaf.edu Organization: St. Olaf College, Northfield, MN USA References: <1t86fp$m7s@infosrv.edvz.univie.ac.at> Date: Mon, 17 May 1993 19:57:32 GMT Lines: 27