diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-10-02 09:06:53 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-10-04 14:53:37 +0000 |
commit | c296fb707ae3252b4bf2ffa3bf647a9249f126c4 (patch) | |
tree | 1f407d9419dce0d79de9e73b9369189118ccc032 /meta-initramfs/recipes-devtools/klibc/klibc.inc | |
parent | 1ca33a5677d8452c568130989fdd29191453c61d (diff) | |
download | meta-openembedded-c296fb707ae3252b4bf2ffa3bf647a9249f126c4.tar.gz |
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 <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/klibc.inc')
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index dec3d3704..30294b19a 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 \ | |||
19 | file://0001-always-use-bfd-linker.patch \ | 19 | file://0001-always-use-bfd-linker.patch \ |
20 | file://0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch \ | 20 | file://0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch \ |
21 | file://0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch \ | 21 | file://0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch \ |
22 | file://0001-arm-Do-not-set-a-fallback-march-and-mtune.patch \ | ||
22 | " | 23 | " |
23 | 24 | ||
24 | ARMPATCHES ?= "" | 25 | ARMPATCHES ?= "" |
@@ -40,7 +41,8 @@ EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \ | |||
40 | 'INSTALLDIR=${libdir}/klibc' \ | 41 | 'INSTALLDIR=${libdir}/klibc' \ |
41 | 'SHLIBDIR=${libdir}' \ | 42 | 'SHLIBDIR=${libdir}' \ |
42 | '${KLIBCTHUMB}' \ | 43 | '${KLIBCTHUMB}' \ |
43 | 'KLIBCOPTFLAGS=${TUNE_CCARGS}' \ | 44 | 'KLIBCOPTFLAGS=${TUNE_CCARGS} -Os' \ |
45 | V=1 \ | ||
44 | " | 46 | " |
45 | 47 | ||
46 | export FIX_ARMV4_EABI_BX = "${FIX_V4BX}" | 48 | export FIX_ARMV4_EABI_BX = "${FIX_V4BX}" |