Date: Mon, 08 Feb 1999 21:18:35 +0100 From: Marc van Kempen <marc@bowtie.nl> To: ports@FreeBSD.ORG Subject: Shared library problem Message-ID: <199902082018.VAA15439@bowtie.nl>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902082018.VAA15439>