Re: [HACKERS] Shared libs with version numbers.
Michael Meskes <meskes@topsystem.de>
From: Michael Meskes <meskes@topsystem.de>
To: darrenk@insightdist.com (Darren King)
Cc: pgsql-hackers@postgresql.org (PostgreSQL Hacker)
Date: 1998-04-30T07:25:02Z
Lists: pgsql-hackers
Darren King writes: > Is there any purpose to the version numbers that some ports append > to a shared lib name, besides keeping different versions around? Yes. Making sure your application doesn't load an incompatible version of the lib. > Using libpq as an example, is there a difference to the system if... > > $(MAKE) libpq.so > $(INSTALL) libpq.so libpq.so.1 > $(LN) libpq.so.1 libpq.so > > ...rather than... > > $(MAKE) libpq.so.1 > $(INSTALL) libpq.so.1 libpq.so.1 > $(LN) libpq.so.1 libpq.so No. The file the system knows is libpq.so.1 either way. You might even call it foo.bar in your Makefile as long as it is installed as libpq.so.1. Michael -- Dr. Michael Meskes, Project-Manager | topsystem Systemhaus GmbH meskes@topsystem.de | Europark A2, Adenauerstr. 20 meskes@debian.org | 52146 Wuerselen Go SF49ers! Go Rhein Fire! | Tel: (+49) 2405/4670-44 Use Debian GNU/Linux! | Fax: (+49) 2405/4670-10