From owner-freebsd-hackers Thu Dec 4 00:19:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA02096 for hackers-outgoing; Thu, 4 Dec 1997 00:19:21 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: (from hsu@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA02089 for hackers; Thu, 4 Dec 1997 00:19:13 -0800 (PST) (envelope-from hsu) Date: Thu, 4 Dec 1997 00:19:13 -0800 (PST) From: Jeffrey Hsu Message-Id: <199712040819.AAA02089@hub.freebsd.org> To: hackers Subject: shared library with static Motif? Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Is there a way to create a shared library with references to Motif routines resolved statically so one doesn't have to also distribute a Motif shared library? Something like gcc -shared -o liba.so -Xlinker -Bstatic libXm.a -Xlinker -Bdynamic -lX11 Even if there was a way to do this, I'm afraid this would not legally qualify to make liba.so freely redistributable and that the program which uses liba.so would itself have to statically link in the Motif library like gcc -o j main.o -la libXm.a -lX11 except I don't think this pulls in any Motif routines from libXm.a at link time. I'm going to try this now. I'd hate to have to determine all the Motif routines used in liba.so and artificially create undefined references to them so the routines get pulled in from from libXm.a at link time.