summaryrefslogtreecommitdiff
path: root/devel/i386-rtems-objc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/i386-rtems-objc/Makefile')
-rw-r--r--devel/i386-rtems-objc/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/devel/i386-rtems-objc/Makefile b/devel/i386-rtems-objc/Makefile
index 80fde57873fc..abf8b77adde2 100644
--- a/devel/i386-rtems-objc/Makefile
+++ b/devel/i386-rtems-objc/Makefile
@@ -62,7 +62,8 @@ MAKE_ENV= MACHINE_ARCH=${RTEMS_ARCH} NO_CPU_CFLAGS=true
# Since once mk/bsd.cpu.mk adds the _CPUCFLAGS they can't be removed
# by NO_CPU_FLAGS, and since they are added long before here we are
# stuck with this hack.
-CFLAGS:= ${CFLAGS:C/-mcpu=[^ ]*//:C/-march=[^ ]*//}
+CFLAGS:= ${CFLAGS:C/${_CPUCFLAGS}//}
+CXXFLAGS:= ${CXXFLAGS:C/${_CPUCFLAGS}//}
pre-configure:
@(cd ${WRKDIR} ; \