Subject: Re: best practise of adding dependency on getopt.h?
To: Packages Technical List NetBSD Discussion <tech-pkg@NetBSD.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 01/02/2007 00:32:47
Am 01.01.2007 um 23:46 schrieb Christian Biere:
> Yes, I've just seen this. Does GCC silently provide getopt_long()?
> Otherwise you need the additional library anyway.
yes, I think so, and unconditionally adding
.include "../../devel/libgetopt/buildlink3.mk"
LIBS+= ${BUILDLINK_LDADD.getopt:Q}
seems like the best way to me.
--
Georg Schwarz http://home.pages.de/~schwarz/
georg.schwarz@freenet.de +49 151 11559652