[git commit branch/0.9.33] arm: Do not use 'sed -r' to calculate IS_EABI

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Thu Feb 23 18:47:38 UTC 2012


commit: http://git.uclibc.org/uClibc/commit/?id=9f598f5ae8fa49a04982abee06d5e57a1df4b6e9
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0.9.33

-r is not available on BSD sed so to keep
compatibility avoid using it.

Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 libc/sysdeps/linux/arm/Makefile.arch |    2 +-
 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)


More information about the uClibc-cvs mailing list