summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arm/Makefile.arch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-02-13 19:37:26 (GMT)
committerKhem Raj <raj.khem@gmail.com>2012-02-13 19:37:26 (GMT)
commit3bab4144e8516d5e63f4fe307aa594364847e527 (patch)
tree298a2c5ffe8d50fe4cbd461885e34438023f65ca /libc/sysdeps/linux/arm/Makefile.arch
parent260260f336ded9ca7be7355331a2cd77659f9ecb (diff)
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 <raj.khem@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/arm/Makefile.arch')
-rw-r--r--libc/sysdeps/linux/arm/Makefile.arch2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/arm/Makefile.arch b/libc/sysdeps/linux/arm/Makefile.arch
index cd1710a..cc73c45 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 2>/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)