From owner-freebsd-hackers Fri Dec 5 22:13:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA22173 for hackers-outgoing; Fri, 5 Dec 1997 22:13:45 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from word.smith.net.au (ppp6.portal.net.au [202.12.71.106]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA22162; Fri, 5 Dec 1997 22:13:27 -0800 (PST) (envelope-from mike@word.smith.net.au) Received: from word (localhost [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id QAA02123; Sat, 6 Dec 1997 16:35:09 +1030 (CST) Message-Id: <199712060605.QAA02123@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Jordan K. Hubbard" cc: Mike Smith , Terry Lambert , hsu@FreeBSD.ORG (Jeffrey Hsu), hackers@hub.freebsd.org Subject: Re: shared library with static Motif? In-reply-to: Your message of "Fri, 05 Dec 1997 21:53:52 -0800." <17481.881387632@time.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 06 Dec 1997 16:35:07 +1030 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > That's odd; StarOffice has most of the Motif library buried inside > > their GUI library. I think they deconstructed the original shared > > libraries and re-archived them along with the rest of their stuff. > > You don't have to do this - all you need to do is statically link in > Motif while leaving everything else shared - that's what the -Bstatic > and -Bdynamic flags for ld toggle on and off, and if you embed them > strategically in your link line you can make this happen. You make the Motif functions appear inside your shared library? I am fairly sure we are misunderstanding here; you seem to be describing "how to link the Motif components statically into your application", while the StarOffice situation is slightly different. They have all their GUI components in a shared library which is used by all their applications. In order to avoid having to distribute the Motif shared library with their stuff, they include all the Motif functions in the aforementioned library. There have been reports of people making copies of the StarOffice library, renaming it "libXm.so.*" and using it to run the shared-Motif Netscape (and other Motif-requiring applications), hence my assumption. > I also have a slight advantage in this debate, having talked just a > couple of weeks ago to the Open Group managers who are in charge of > the Motif licensing issues, [...] but I got the feeling that > they may be focusing strictly on the header files in any future > "compliance enforcement" issues). This sounds extremely positive. mike