1From 94b951c0cccf67b66749cc87c473e63fa5207e83 Mon Sep 17 00:00:00 2001
2From: Oleksiy Obitotskyy <oobitots@cisco.com>
3Date: Wed, 27 Jan 2021 06:47:13 -0800
4Subject: [PATCH] lemon: Remove #line directives
5
6In case of reproducible build remove #line
7directives with extra option '-l'.
8
9Upstream-Status: Pending
10Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
11
12---
13 cmake/modules/UseLemon.cmake | 2 ++
14 1 file changed, 2 insertions(+)
15
16diff --git a/cmake/modules/UseLemon.cmake b/cmake/modules/UseLemon.cmake
17index e419de1..fa4034e 100644
18--- a/cmake/modules/UseLemon.cmake
19+++ b/cmake/modules/UseLemon.cmake
20@@ -12,6 +12,7 @@ if(LEMON_EXECUTABLE)
21 				${_out}.h
22 				${_out}.out
23 			COMMAND ${LEMON_EXECUTABLE}
24+				-l
25 				-T/usr/share/lemon/lempar.c
26 				-d.
27 				${_in}
28@@ -30,6 +31,7 @@ else()
29 				${_out}.h
30 				${_out}.out
31 			COMMAND $<TARGET_FILE:lemon>
32+				-l
33 				-T${CMAKE_SOURCE_DIR}/tools/lemon/lempar.c
34 				-d.
35 				${_in}
36