2021-12-01 23:11:14 +01:00
|
|
|
From 33270f56477542dedf978e660cf8d08464f28797 Mon Sep 17 00:00:00 2001
|
2021-11-26 18:18:04 +01:00
|
|
|
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
|
|
Date: Fri, 26 Nov 2021 17:45:23 +0100
|
2021-12-01 23:11:14 +01:00
|
|
|
Subject: [PATCH] cmake: lemon: wipe CMAKE_{EXE_LINKER_FLAGS,SYSROOT} if needed
|
2021-11-26 18:18:04 +01:00
|
|
|
|
2021-12-01 23:11:14 +01:00
|
|
|
Wipe CMAKE_{EXE_LINKER_FLAGS,SYSROOT} when LEMON_C_COMPILER is set to
|
|
|
|
avoid a build failure when cross-compiling (e.g. with buildroot)
|
2021-11-26 18:18:04 +01:00
|
|
|
|
|
|
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
|
|
[Upstream status:
|
|
|
|
https://gitlab.com/wireshark/wireshark/-/merge_requests/5224]
|
|
|
|
---
|
2021-12-01 23:11:14 +01:00
|
|
|
tools/lemon/CMakeLists.txt | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
2021-11-26 18:18:04 +01:00
|
|
|
|
|
|
|
diff --git a/tools/lemon/CMakeLists.txt b/tools/lemon/CMakeLists.txt
|
2021-12-01 23:11:14 +01:00
|
|
|
index 8742aa9fc9..7a9263fe0d 100644
|
2021-11-26 18:18:04 +01:00
|
|
|
--- a/tools/lemon/CMakeLists.txt
|
|
|
|
+++ b/tools/lemon/CMakeLists.txt
|
2021-12-01 23:11:14 +01:00
|
|
|
@@ -12,6 +12,8 @@ add_executable(lemon lemon.c)
|
2021-11-26 18:18:04 +01:00
|
|
|
if(DEFINED LEMON_C_COMPILER)
|
|
|
|
set(CMAKE_C_COMPILER "${LEMON_C_COMPILER}")
|
|
|
|
set(CMAKE_C_FLAGS "")
|
2021-12-01 23:11:14 +01:00
|
|
|
+ set(CMAKE_EXE_LINKER_FLAGS "")
|
2021-11-26 18:18:04 +01:00
|
|
|
+ set(CMAKE_SYSROOT "")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# To keep lemon.c as close to upstream as possible, deliberately ignore
|
|
|
|
--
|
|
|
|
2.33.0
|
|
|
|
|