From ce69c1eab4077dc3a327fd35177dceb1a824c930 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sun, 13 Mar 2011 01:42:50 +0100 Subject: arm: consistency check OABI v. EABI added check in toolchain and config Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/arm/Makefile.arch | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libc/sysdeps/linux/arm/Makefile.arch') diff --git a/libc/sysdeps/linux/arm/Makefile.arch b/libc/sysdeps/linux/arm/Makefile.arch index cc73c45c7..093eb2dbd 100644 --- a/libc/sysdeps/linux/arm/Makefile.arch +++ b/libc/sysdeps/linux/arm/Makefile.arch @@ -21,9 +21,8 @@ CSRC += posix_fadvise.c posix_fadvise64.c endif # Is our compiler set up for EABI ? -IS_EABI:=$(shell $(CC) $(CFLAGS) -x c - -E -dM /dev/null \ - | grep __ARM_EABI__ 2>&1 >/dev/null && echo 'y' \ - ) +CC_IS_EABI_CHECK = $(filter-out -include libc-symbols.h,$(CC) $(CFLAGS)) +$(eval $(call cache-output-var,IS_EABI,$(CC_IS_EABI_CHECK) -x c - -E -dM /dev/null | grep __ARM_EABI__ 2>&1 >/dev/null && echo 'y')) ifeq ($(IS_EABI),y) CSRC += aeabi_assert.c aeabi_atexit.c aeabi_errno_addr.c \ -- cgit v1.2.3