Subject: Re: Solaris specific package patches
To: None <jmmv@menta.net>
From: Gavan Fantom <gavan@coolfactor.org>
List: tech-pkg
Date: 09/23/2003 16:58:15
On Tue, 23 Sep 2003 jmmv@menta.net wrote:

> On Mon, Sep 22, 2003 at 08:42:19PM +0100, Gavan Fantom wrote:
> > On Mon, 22 Sep 2003, Christos Zoulas wrote:
> >
> > > I keep seeing the following patch appear on many packages. I think that
> > > we could follow a more generic approach, rather than patching each package
> > > individually? Is there a way to do this?
> > >
> > > christos
> > >
> > > +.if ${OPSYS} == "SunOS"
> > > +LDFLAGS+=      -lsocket -lnsl -lresolv
> > > +.endif
> >
> > Maybe add LDFLAGS to defs.SunOS.mk?
>
> So everything gets linked against these libraries?  Won't they introduce
> "overhead" for packages not really needing them?  Or this is acceptable?

You will either have to add this for all packages, or for each and every
package. I don't think there's an easy middle ground.

Of course, each and every package could be a case of setting a variable
NEED_SOLARIS_LIBS, but I'm not sure if that's a good idea.

-- 
Gillette - the best a man can forget