From 94b951c0cccf67b66749cc87c473e63fa5207e83 Mon Sep 17 00:00:00 2001
From: Oleksiy Obitotskyy <oobitots@cisco.com>
Date: Wed, 27 Jan 2021 06:47:13 -0800
Subject: [PATCH] lemon: Remove #line directives

In case of reproducible build remove #line
directives with extra option '-l'.

Upstream-Status: Pending
Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>

---
 cmake/modules/UseLemon.cmake | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmake/modules/UseLemon.cmake b/cmake/modules/UseLemon.cmake
index e419de1..fa4034e 100644
--- a/cmake/modules/UseLemon.cmake
+++ b/cmake/modules/UseLemon.cmake
@@ -12,6 +12,7 @@ if(LEMON_EXECUTABLE)
 				${_out}.h
 				${_out}.out
 			COMMAND ${LEMON_EXECUTABLE}
+				-l
 				-T/usr/share/lemon/lempar.c
 				-d.
 				${_in}
@@ -30,6 +31,7 @@ else()
 				${_out}.h
 				${_out}.out
 			COMMAND $<TARGET_FILE:lemon>
+				-l
 				-T${CMAKE_SOURCE_DIR}/tools/lemon/lempar.c
 				-d.
 				${_in}
