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