diff options
author | Koen Kooi <koen.kooi@linaro.org> | 2014-07-14 10:42:12 +0200 |
---|---|---|
committer | Koen Kooi <koen.kooi@linaro.org> | 2014-07-14 10:42:44 +0200 |
commit | 0a6e3a775f680829c58b908f63355c84da4cda28 (patch) | |
tree | 60a70144bf24ac23b1b703dbfb123752d13fab89 /meta-linaro-integration/recipes-overlayed/libhugetlbfs/files/0001-aarch64-fix-cross-compilation.patch | |
parent | 4d59018e4e85886d01756e2ead84b890d4b184cf (diff) |
libhugetlbfs: overlay for https://bugs.linaro.org/show_bug.cgi?id=171
Change-Id: I590d3c05fa520dda6735cc7ba0e0278a6e8bc262
Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Diffstat (limited to 'meta-linaro-integration/recipes-overlayed/libhugetlbfs/files/0001-aarch64-fix-cross-compilation.patch')
-rw-r--r-- | meta-linaro-integration/recipes-overlayed/libhugetlbfs/files/0001-aarch64-fix-cross-compilation.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-linaro-integration/recipes-overlayed/libhugetlbfs/files/0001-aarch64-fix-cross-compilation.patch b/meta-linaro-integration/recipes-overlayed/libhugetlbfs/files/0001-aarch64-fix-cross-compilation.patch new file mode 100644 index 00000000..215ae728 --- /dev/null +++ b/meta-linaro-integration/recipes-overlayed/libhugetlbfs/files/0001-aarch64-fix-cross-compilation.patch @@ -0,0 +1,34 @@ +Subject: [PATCH] aarch64: fix cross compilation + +This patch allow to override CC and use it for aarch64 case like +the other architectures. + +Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org> + +Upstream-Status: Submitted +--- + Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index 91502e1..5aa1e12 100644 +--- a/Makefile ++++ b/Makefile +@@ -33,7 +33,7 @@ CFLAGS += -Wall -fPIC + CPPFLAGS += -D__LIBHUGETLBFS__ + + ARCH = $(shell uname -m | sed -e s/i.86/i386/) +-CC = gcc ++CC ?= gcc + + CUSTOM_LDSCRIPTS = yes + +@@ -66,7 +66,7 @@ ELF32 += armelf_linux_eabi + CUSTOM_LDSCRIPTS = no + else + ifneq (,$(findstring aarch64,$(ARCH))) +-CC64 = gcc ++CC64 = $(CC) + ELF64 = aarch64elf + TMPLIB64 = lib64 + CUSTOM_LDSCRIPTS = no |