From owner-freebsd-ports Mon Feb 8 12:20:09 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA24761 for freebsd-ports-outgoing; Mon, 8 Feb 1999 12:20:09 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from news.IAEhv.nl (news.IAEhv.nl [194.151.64.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA24754 for ; Mon, 8 Feb 1999 12:20:07 -0800 (PST) (envelope-from marc@bowtie.nl) Received: (from uucp@localhost) by news.IAEhv.nl (8.9.1/8.9.1) with IAEhv.nl id VAA22012 for ports@freebsd.org; Mon, 8 Feb 1999 21:20:06 +0100 (MET) Received: from localhost (localhost [127.0.0.1]) by bowtie.nl (8.8.8/8.8.8) with ESMTP id VAA15439 for ; Mon, 8 Feb 1999 21:18:35 +0100 (CET) (envelope-from marc@bowtie.nl) Message-Id: <199902082018.VAA15439@bowtie.nl> X-Mailer: exmh version 2.0.2 2/24/98 To: ports@FreeBSD.ORG Subject: Shared library problem Reply-to: marc@bowtie.nl Date: Mon, 08 Feb 1999 21:18:35 +0100 From: Marc van Kempen Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I'm having a discussion on the gtk development list about the linking scheme that is imposed when configuring for FreeBSD 2.2.x. At the moment symlinks as follows are created when installing the beast (gtk+-1.1.15 and glib-1.1.15) libgtk-1.1.so.14.1 libgtk.a libgtk.la libgtk.so -> libgtk-1.1.so.14.1 If I leave out the link below: libgtk.so.14.1 -> libgtk-1.1.so.14.1 Things go wrong when trying to link, since gtk-config (a shell script to return library flags and compiler flags) returns -lgtk, and thus the aout linker tries to link with libgtk.a My proposed solution (adding the link) was rejected because that would get in the way of versioning, since after the gtk-1.2 is released they will continue with gtk-1.3 and multiple libraries must be able to coexist. To cut a long story short, another solution is to have 'gtk-config' specify -lgtk-1.1 as the library to link with, however is the following reason valid to determine this case: "if the version_type is sunos, or freebsd-aout, and no soname_spec is set, then put -lgtk-1.1 into gtk-config." Or to put it more simply, when freebsd-aout is found is it safe to assume that -lgtk-1.1 is necessary? Regards, Marc. ---------------------------------------------------- Marc van Kempen BowTie Technology Email: marc@bowtie.nl WWW & Databases tel. +31 40 2 43 20 65 fax. +31 40 2 44 21 86 http://www.bowtie.nl ---------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message