From 3bab4144e8516d5e63f4fe307aa594364847e527 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 13 Feb 2012 11:37:26 -0800 Subject: arm: Do not use 'sed -r' to calculate IS_EABI -r is not available on BSD sed so to keep compatibility avoid using it. Signed-off-by: Khem Raj --- libc/sysdeps/linux/arm/Makefile.arch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc') diff --git a/libc/sysdeps/linux/arm/Makefile.arch b/libc/sysdeps/linux/arm/Makefile.arch index cd1710a55..cc73c45c7 100644 --- a/libc/sysdeps/linux/arm/Makefile.arch +++ b/libc/sysdeps/linux/arm/Makefile.arch @@ -22,7 +22,7 @@ endif # Is our compiler set up for EABI ? IS_EABI:=$(shell $(CC) $(CFLAGS) -x c - -E -dM /dev/null \ - |sed -r -e '/^\#[[:space:]]*define[[:space:]]+__ARM_EABI__([[:space:]]+1)?$$/!d; s/.+/y/;' \ + | grep __ARM_EABI__ 2>&1 >/dev/null && echo 'y' \ ) ifeq ($(IS_EABI),y) -- cgit v1.2.3