aboutsummaryrefslogtreecommitdiffstats
path: root/meta-filesystems/recipes-filesystems/unionfs-fuse/files/0001-support-cross-compiling.patch
blob: 9b4d0f6cae148fc0dd5023aa6b82663120ed35a1 (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
From 6e794a36564a2639a07d8720260e33d7c9435aa4 Mon Sep 17 00:00:00 2001
From: Alper Ak <alperyasinak1@gmail.com>
Date: Fri, 10 Nov 2023 20:50:48 +0300
Subject: [PATCH] support cross compiling

Do not override OE CMAKE variables

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>

Upstream-Status: Pending
---
 src/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f549496..ab71fb2 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -4,9 +4,9 @@ set(UNIONFS_SRCS unionfs.c opts.c debug.c findbranch.c readdir.c
     fuse_ops.c)
 set(UNIONFSCTL_SRCS unionfsctl.c)
 
-SET(CMAKE_C_FLAGS "-pipe -W -Wall -D_FORTIFY_SOURCE=2")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pipe -W -Wall -D_FORTIFY_SOURCE=2")
 SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")
-SET(CMAKE_C_FLAGS_RELEASE "-O2")
+SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2")
 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -DDEBUG")
 
 add_executable(unionfs ${UNIONFS_SRCS} ${HASHTABLE_SRCS})