summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arm/Makefile.arch
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/arm/Makefile.arch')
-rw-r--r--libc/sysdeps/linux/arm/Makefile.arch5
1 files changed, 2 insertions, 3 deletions
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 2>/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 2>/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 \