aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/wireshark/files/0004-lemon-Remove-line-directives.patch
blob: 1a6fe8d39e4fbc0d2926c44a0095f3f01e0b8f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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}