svn commit: r250379 - in head/usr.sbin/bsnmpd/modules: . snmp_hast
Pawel Jakub Dawidek
pjd at FreeBSD.org
Fri May 10 18:58:14 UTC 2013
On Thu, May 09, 2013 at 01:05:35PM +0300, Mikolaj Golub wrote:
> On Thu, May 09, 2013 at 11:22:43AM +0300, Konstantin Belousov wrote:
> > Why do you need libl.a ? If only for yywrap(), then re-implementing
> > it for the module seems to be trivial.
>
> Yes, it is like so. Thanks! I am now considering two possible
> solutions:
>
> 1) As it is suggested above, add trivial yywrap() and link without -ll.
>
> 2) Add '%option noyywrap' to hastd/token.l, and link hastd, hastctl
> and snmp_hast without -ll (it looks like yywrap is needed only when
> parsing more than one file).
>
> See the patches below. It looks both solutions work for me and I
> personally prefer the second one.
Me too.
--
Pawel Jakub Dawidek http://www.wheelsystems.com
FreeBSD committer http://www.FreeBSD.org
Am I Evil? Yes, I Am! http://mobter.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20130510/d9e501ae/attachment.sig>
More information about the svn-src-head
mailing list