Skip site navigation (1) Skip section navigation (2)

Re: Reduce dependancies of postmaster (without --as-needed)

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Reduce dependancies of postmaster (without --as-needed)
Date: 2005-11-28 21:49:12
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
On Nov 28 2005, Martijn van Oosterhout wrote:

> On Mon, Nov 28, 2005 at 10:18:08AM -0500, Tom Lane wrote:
> > Pulling those out is just not a good idea; we'd never have included them
> > in the first place if they weren't needed on some platforms.  A lot of
> > these system libraries are very hard to test for in a reasonable way.
> > For instance, IIRC the reason libBSD is needed on HP-UX is that it
> > provides POSIX-compatible signal behavior.  The same functions exist in
> > libc ... but they work differently :-(
> Yeah, but pulling them in when they're not needed is a waste also. I'm
> sure that a lot of platforms have -lnsl but I doubt many need it given
> it's for NIS/YP support. libBSD doesn't bother me as much because it's
> not going to exist on 99% of platforms.

-lnsl is needed on SVR4 derivatives, like Solaris and UnixWare.  it is the 
network services library. 

You'll needed it for ANY socket based code on these platforms.


Larry Rosenman           
Phone: +1 972-414-9812                 E-Mail: ler(at)lerctr(dot)org
US Mail: 3535 Gaspar Drive, Dallas, TX 75220-3611


pgsql-patches by date

Next:From: Andrew DunstanDate: 2005-11-28 21:52:30
Subject: Re: Reduce dependancies of postmaster (without --as-needed)
Previous:From: Martijn van OosterhoutDate: 2005-11-28 21:36:23
Subject: Re: Reduce dependancies of postmaster (without --as-needed)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group