From: Thiemo Seufer Date: Thu, 7 Jul 2005 11:18:49 +0000 (+0000) Subject: Grep deesn't like shell-style matching... X-Git-Tag: v2.6.15-rc1~731^2~1^2~161 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=73f74e23a6d9f3aabccf966c18cff04a74afed7f;p=~emulex%2Finfiniband.git Grep deesn't like shell-style matching... Signed-off-by: Ralf Baechle Signed-off-by: Thiemo Seufer --- diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 056aae59712..d51b2b49c78 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -103,8 +103,8 @@ MODFLAGS += -mlong-calls # carefully avoid to add it redundantly because gcc 3.3/3.4 complains # when fed the toolchain default! # -cflags-$(CONFIG_CPU_BIG_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips*el-linux*' && echo -EB) -cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips*el-linux*' || echo -EL) +cflags-$(CONFIG_CPU_BIG_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips.*el-linux.*' && echo -EB) +cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips.*el-linux.*' || echo -EL) cflags-$(CONFIG_SB1XXX_CORELIS) += -mno-sched-prolog -fno-omit-frame-pointer