Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!ncis.tis.llnl.gov!lance.tis.llnl.gov!carlson From: carlson@lance.tis.llnl.gov (John Carlson) Newsgroups: comp.windows.x Subject: Re: SunOS4 Xlib shared library Keywords: works Message-ID: <465@ncis.tis.llnl.gov> Date: 12 Sep 89 05:23:36 GMT References: <2465@jhunix.HCF.JHU.EDU> Sender: news@ncis.tis.llnl.gov Organization: Lawrence Livermore National Laboratory Lines: 53 In article <2465@jhunix.HCF.JHU.EDU> ins_ajsk@jhunix.HCF.JHU.EDU (Jon Kay) writes: >Those of you with Suns running SunOS 4.whatever might be interested in >the following: >I went about it in a very simple-minded way: I simply used >make CC="cc -pic -O2" >rm libX11.a >ld *.o -o libX11.so.11.3 >in the lib/X directory and installed libX11.so.11.3 in /usr/lib. >If anybody decides to do it "right" or comes up with some other >improvement, please let me know.... Here's what I did. I don't think it's "right" yet, you still have to do some kind of install (move lib.so to something useful): Made changes to Sun.macros: ****** AR command will create both a static and dynamic library. ****** This is really gross. I don't really recommend it; it's just ****** a quick way to avoid changing Imake rules. 37c37 < AR = ar clq --- > AR = $(LD) -o lib.so -assert pure-text $(OBJS); ar clq ****** Sun OS 4.0 lint has options opposite SYS V 39c39 < LINTOPTS = -axz --- > LINTOPTS = -bh ****** ****** In the Imakefile for many libraries, you can find ****** "STD_DEFINES = LibraryDefines". Unfortunately, ****** the newest kid on the block, XView, doesn't ****** include this. Perhaps they have another way ****** to get shared libraries. ****** ****** Anyway, this is probably another kludge. ****** 50c50 < #define LibraryDefines --- > #define LibraryDefines -pic Anyway, back to the drawing bored. John "X11: 200MB and climbing..." Carlson carlson@tis.llnl.gov