Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Mar 2020 14:37:01 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r359241 - head/sbin/setkey
Message-ID:  <202003231437.02NEb1QM003332@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Mon Mar 23 14:37:00 2020
New Revision: 359241
URL: https://svnweb.freebsd.org/changeset/base/359241

Log:
  Remove the link to libl which only contains a stub function
  on yywrap, if the flex is told yywrap is not in use, then this linkage becomes
  unnecessary

Modified:
  head/sbin/setkey/Makefile
  head/sbin/setkey/token.l

Modified: head/sbin/setkey/Makefile
==============================================================================
--- head/sbin/setkey/Makefile	Mon Mar 23 14:33:29 2020	(r359240)
+++ head/sbin/setkey/Makefile	Mon Mar 23 14:37:00 2020	(r359241)
@@ -37,8 +37,6 @@ WARNS?=	1
 CFLAGS+= -I${.CURDIR} -I${SRCTOP}/lib/libipsec
 YFLAGS=	-d
 
-LIBADD=	l
-
 CLEANFILES=	y.tab.c y.tab.h key_test.o keytest
 
 # libpfkey

Modified: head/sbin/setkey/token.l
==============================================================================
--- head/sbin/setkey/token.l	Mon Mar 23 14:33:29 2020	(r359240)
+++ head/sbin/setkey/token.l	Mon Mar 23 14:37:00 2020	(r359241)
@@ -67,6 +67,8 @@ int parse(FILE **);
 int yyparse(void);
 %}
 
+%option noyywrap
+
 /* common section */
 nl		\n
 ws		[ \t]+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003231437.02NEb1QM003332>