summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/wtmpdb/files/0001-remove-lto-to-fix-link-error-of-clang.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/wtmpdb/files/0001-remove-lto-to-fix-link-error-of-clang.patch')
-rw-r--r--meta-oe/recipes-extended/wtmpdb/files/0001-remove-lto-to-fix-link-error-of-clang.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/wtmpdb/files/0001-remove-lto-to-fix-link-error-of-clang.patch b/meta-oe/recipes-extended/wtmpdb/files/0001-remove-lto-to-fix-link-error-of-clang.patch
new file mode 100644
index 0000000000..ef188e7a15
--- /dev/null
+++ b/meta-oe/recipes-extended/wtmpdb/files/0001-remove-lto-to-fix-link-error-of-clang.patch
@@ -0,0 +1,31 @@
1From 9840939789dec9153150e8f9ae34de4171a5c15e Mon Sep 17 00:00:00 2001
2From: Wang Mingyu <wangmy@fujitsu.com>
3Date: Wed, 19 Jul 2023 07:31:32 +0000
4Subject: [PATCH] remove lto to fix link error of clang
5
6error message:
7| tests/tst-dlopen.p/tst-dlopen.c.o: file not recognized: file format not recognized
8| clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
9
10Upstream-Status: Pending
11
12Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
13---
14 meson.build | 1 -
15 1 file changed, 1 deletion(-)
16
17diff --git a/meson.build b/meson.build
18index 6fe8045..166a15b 100644
19--- a/meson.build
20+++ b/meson.build
21@@ -28,7 +28,6 @@ add_project_arguments(['-D_GNU_SOURCE=1',
22 '-D_TIME_BITS=64'], language : 'c')
23
24 possible_cc_flags = [
25- '-flto=auto',
26 '-ffat-lto-objects',
27 '-fstack-protector-strong',
28 '-funwind-tables',
29--
302.34.1
31