blob: 1a6fe8d39e4fbc0d2926c44a0095f3f01e0b8f79 [file] [log] [blame]
Patrick Williams705982a2024-01-12 09:51:57 -06001From 94b951c0cccf67b66749cc87c473e63fa5207e83 Mon Sep 17 00:00:00 2001
Andrew Geissler97771a32021-03-05 15:23:11 -06002From: 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>
Andrew Geissler97771a32021-03-05 15:23:11 -060011
Patrick Williams705982a2024-01-12 09:51:57 -060012---
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}