summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-08-01 07:15:56 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-08-13 13:20:57 +0200
commit8f65c719c77484da9a9bef5a6dbca5373bdcf680 (patch)
treef0ec9e8fba2c3bc2f184b0c32ed2b7e40c9138c3 /meta-initramfs/recipes-devtools/klibc/klibc-2.0.4
parent04c3bc04cda280ee7cf01e7c179157931af7a4f2 (diff)
downloadmeta-openembedded-8f65c719c77484da9a9bef5a6dbca5373bdcf680.tar.gz
klibc: Fix build with clang
Remove gcc specific options use common one instead Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/klibc-2.0.4')
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch
new file mode 100644
index 000000000..41cc14275
--- /dev/null
+++ b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch
@@ -0,0 +1,30 @@
1From f66edde8a704131d98e8783ea8d4c848e8119b20 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 26 Jul 2017 16:13:16 -0700
4Subject: [PATCH 1/3] Kbuild.klibc: Use -print-libgcc-file-name instead of
5 --print-libgcc
6
7-print-libgcc-file-name works with clang and gcc unlike --print-libgcc
8which is gcc specific
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 scripts/Kbuild.klibc | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc
16index f500d535..101f86f5 100644
17--- a/scripts/Kbuild.klibc
18+++ b/scripts/Kbuild.klibc
19@@ -128,7 +128,7 @@ KLIBCCFLAGS += $(KLIBCCPPFLAGS) $(KLIBCREQFLAGS) $(KLIBCARCHREQFLAGS) \
20 KLIBCAFLAGS += -D__ASSEMBLY__ $(KLIBCCFLAGS)
21 KLIBCSTRIPFLAGS += --strip-all -R .comment -R .note
22
23-KLIBCLIBGCC_DEF := $(shell $(KLIBCCC) $(KLIBCCFLAGS) --print-libgcc)
24+KLIBCLIBGCC_DEF := $(shell $(KLIBCCC) $(KLIBCCFLAGS) -print-libgcc-file-name)
25 KLIBCLIBGCC ?= $(KLIBCLIBGCC_DEF)
26 KLIBCCRT0 := $(KLIBCOBJ)/arch/$(KLIBCARCHDIR)/crt0.o
27 KLIBCLIBC := $(KLIBCOBJ)/libc.a
28--
292.13.3
30