Explorar o código

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>
Khem Raj %!s(int64=12) %!d(string=hai) anos
pai
achega
3bab4144e8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      libc/sysdeps/linux/arm/Makefile.arch

+ 1 - 1
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)