diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-08-01 07:15:56 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-08-13 13:20:57 +0200 |
commit | 8f65c719c77484da9a9bef5a6dbca5373bdcf680 (patch) | |
tree | f0ec9e8fba2c3bc2f184b0c32ed2b7e40c9138c3 /meta-initramfs/recipes-devtools/klibc/klibc-2.0.4 | |
parent | 04c3bc04cda280ee7cf01e7c179157931af7a4f2 (diff) | |
download | meta-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.patch | 30 |
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 @@ | |||
1 | From f66edde8a704131d98e8783ea8d4c848e8119b20 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 26 Jul 2017 16:13:16 -0700 | ||
4 | Subject: [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 | ||
8 | which is gcc specific | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | scripts/Kbuild.klibc | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc | ||
16 | index 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 | -- | ||
29 | 2.13.3 | ||
30 | |||