From owner-freebsd-hackers Sat Dec 6 16:31:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA28547 for hackers-outgoing; Sat, 6 Dec 1997 16:31:44 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from freebsd1.cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA28525; Sat, 6 Dec 1997 16:31:36 -0800 (PST) (envelope-from jb@freebsd1.cimlogic.com.au) Received: (from jb@localhost) by freebsd1.cimlogic.com.au (8.8.5/8.8.5) id LAA01664; Sun, 7 Dec 1997 11:35:13 +1100 (EST) From: John Birrell Message-Id: <199712070035.LAA01664@freebsd1.cimlogic.com.au> Subject: Re: shared library with static Motif? In-Reply-To: <199712070018.QAA27468@hub.freebsd.org> from Jeffrey Hsu at "Dec 6, 97 04:18:59 pm" To: hsu@FreeBSD.ORG (Jeffrey Hsu) Date: Sun, 7 Dec 1997 11:35:12 +1100 (EST) Cc: hackers@hub.freebsd.org X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Jeffrey Hsu wrote: > I tried that. You get the dreaded RSS relocation error messages because > the routines in libXm.a weren't meant to be used in a shared library. Oh yeah, I forgot about the fact that the functions in libXm.a would not have been compiled with -fpic. And (as you said in another message) without that, libXm.a can only be linked into a program, not PIC. Regards, -- John Birrell - jb@cimlogic.com.au; jb@netbsd.org; jb@freebsd.org CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137