From c296fb707ae3252b4bf2ffa3bf647a9249f126c4 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 2 Oct 2017 09:06:53 -0700 Subject: klibc: Pass Optimization with KLIBCOPTFLAGS Overriding KLIBCOPTFLAGS also meant that -Ox flags were taken off. Which results in errors like | usr/dash/shell.h: In function 'max_int_length': | usr/dash/shell.h:103:25: error: '-mgeneral-regs-only' is incompatible with floating-point code | return (bytes * 8 - 1) * 0.30102999566398119521 + 14; | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ | usr/dash/shell.h:103:25: error: '-mgeneral-regs-only' is incompatible with floating-point argument Signed-off-by: Khem Raj Signed-off-by: Martin Jansa --- meta-initramfs/recipes-devtools/klibc/klibc.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta-initramfs/recipes-devtools/klibc/klibc.inc') diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index dec3d37042..30294b19a8 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc @@ -19,6 +19,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git \ file://0001-always-use-bfd-linker.patch \ file://0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch \ file://0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch \ + file://0001-arm-Do-not-set-a-fallback-march-and-mtune.patch \ " ARMPATCHES ?= "" @@ -40,7 +41,8 @@ EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \ 'INSTALLDIR=${libdir}/klibc' \ 'SHLIBDIR=${libdir}' \ '${KLIBCTHUMB}' \ - 'KLIBCOPTFLAGS=${TUNE_CCARGS}' \ + 'KLIBCOPTFLAGS=${TUNE_CCARGS} -Os' \ + V=1 \ " export FIX_ARMV4_EABI_BX = "${FIX_V4BX}" -- cgit v1.2.3-54-g00ecf