mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
kexec-tools-klibc: Deliberately add -O2
This helps the compiler to be more aggressive and do the expected optimizations to remove unused code which otherwise gets flagged on some architectures e.g. armv7l errors like undefined reference to `bad_unaligned_access_length' Also see http://lists.infradead.org/pipermail/kexec/2009-August/003488.html Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
This commit is contained in:
parent
5028479bff
commit
e5c84d8365
@ -60,7 +60,7 @@ EXTRA_OECONF += "--without-zlib --without-lzma --without-xen"
|
||||
|
||||
# fix purgatory/printf.c:2:10: fatal error: limits.h: No such file or directory
|
||||
# fix include/limits.h:42:10: fatal error: bitsize/limits.h: No such file or directory
|
||||
COMMON_CFLAGS += "-I${STAGING_DIR_HOST}${libdir}/klibc/include -I${S}/purgatory/include"
|
||||
COMMON_CFLAGS += "-O2 -I${STAGING_DIR_HOST}${libdir}/klibc/include -I${S}/purgatory/include"
|
||||
CFLAGS_x86_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
|
||||
CFLAGS_x86-64_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64"
|
||||
CFLAGS_arm_append = " ${COMMON_CFLAGS} -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user