From 27ddcc1bc754b6dc031837f803684cea659bde89 Mon Sep 17 00:00:00 2001 From: Thomas Moestl Date: Fri, 10 Jan 2003 23:37:16 +0000 Subject: [PATCH] Do not try to S/${_CPUCFLAGS}//g when _CPUCFLAGS is not defined or empty (like on ia64); S///g is too much for make's little mind. Approved by: kris --- devel/m6811-gcc/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devel/m6811-gcc/Makefile b/devel/m6811-gcc/Makefile index aaa2d5425c89..be264b5f75f7 100644 --- a/devel/m6811-gcc/Makefile +++ b/devel/m6811-gcc/Makefile @@ -28,7 +28,9 @@ ONLY_FOR_ARCHS= i386 USE_GMAKE= yes HAS_CONFIGURE= yes +.if defined(_CPUCFLAGS) && !empty(_CPUCFLAGS) CFLAGS:= ${CFLAGS:S/${_CPUCFLAGS}//g} +.endif PLIST_SUB= GCC_VER=${PORTVERSION} CONFIGURE_ARGS= --prefix=${PREFIX} --target=m6811-elf \ --program-prefix=m6811-elf-