Sfoglia il codice sorgente

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 12 anni fa
parent
commit
3bab4144e8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)