Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!spool.mu.edu!agate!ucbvax!sunbim.be!db From: db@sunbim.be (Danny Backx) Newsgroups: comp.windows.x.motif Subject: Re: Motif 1.1.2 and SunOS shlib Message-ID: <9106130737.AA04732@whitney.sunbim.uucp> Date: 13 Jun 91 07:37:08 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 35 Newsgroups: comp.windows.x.motif References: <9106021754.AA25809@mview> <9106031823.AA01972@sirius> Reply-To: db@whitney.UUCP (Danny Backx) Distribution: inet Organization: BIM Everberg Belgium In article <9106031823.AA01972@sirius> tsang@ISI.COM (Kam C. Tsang) writes: >> How hard is it to make SunOS shared libraries for Motif 1.1.2? > >Building sharable library for motif is easy. Just compile the motif >files with the -pic flag and link the object files (ld -o libXm.so.1.1 >-assert pure-text *.o) . Well, if you do just that, your libraries won't REALLY be shared. Motif will write into some variables inside your "shared" library at run time, and as a consequence, the initially shared library will be duplicated by SunOS. You'll have to do better than that. By the way, the split of the library in two is really not necessary. Use -PIC on SPARC instead of -pic. It's in the manual. Danny Backx System Engineer, BIM Networks E-Mail: db@sunbim.be (or uunet!mcsun!ub4b!sunbim!db) Telephone: +32(2)759.59.25 Fax : +32(2)759.47.95 Postal Mail : Danny Backx BIM Kwikstraat 4 3078 Everberg Belgium