1From 6e794a36564a2639a07d8720260e33d7c9435aa4 Mon Sep 17 00:00:00 2001
2From: Alper Ak <alperyasinak1@gmail.com>
3Date: Fri, 10 Nov 2023 20:50:48 +0300
4Subject: [PATCH] support cross compiling
5
6Do not override OE CMAKE variables
7
8Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
9Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
10
11Upstream-Status: Pending
12---
13 src/CMakeLists.txt | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
17index f549496..ab71fb2 100644
18--- a/src/CMakeLists.txt
19+++ b/src/CMakeLists.txt
20@@ -4,9 +4,9 @@ set(UNIONFS_SRCS unionfs.c opts.c debug.c findbranch.c readdir.c
21     fuse_ops.c)
22 set(UNIONFSCTL_SRCS unionfsctl.c)
23
24-SET(CMAKE_C_FLAGS "-pipe -W -Wall -D_FORTIFY_SOURCE=2")
25+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pipe -W -Wall -D_FORTIFY_SOURCE=2")
26 SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")
27-SET(CMAKE_C_FLAGS_RELEASE "-O2")
28+SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2")
29 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -DDEBUG")
30
31 add_executable(unionfs ${UNIONFS_SRCS} ${HASHTABLE_SRCS})
32