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--- 11 src/CMakeLists.txt | 4 ++-- 12 1 file changed, 2 insertions(+), 2 deletions(-) 13 14diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt 15index f549496..ab71fb2 100644 16--- a/src/CMakeLists.txt 17+++ b/src/CMakeLists.txt 18@@ -4,9 +4,9 @@ set(UNIONFS_SRCS unionfs.c opts.c debug.c findbranch.c readdir.c 19 fuse_ops.c) 20 set(UNIONFSCTL_SRCS unionfsctl.c) 21 22-SET(CMAKE_C_FLAGS "-pipe -W -Wall -D_FORTIFY_SOURCE=2") 23+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pipe -W -Wall -D_FORTIFY_SOURCE=2") 24 SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") 25-SET(CMAKE_C_FLAGS_RELEASE "-O2") 26+SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2") 27 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -DDEBUG") 28 29 add_executable(unionfs ${UNIONFS_SRCS} ${HASHTABLE_SRCS}) 30