aboutsummaryrefslogtreecommitdiffstats
path: root/devel/arm-elf-gcc31/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/arm-elf-gcc31/Makefile')
-rw-r--r--devel/arm-elf-gcc31/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/devel/arm-elf-gcc31/Makefile b/devel/arm-elf-gcc31/Makefile
index bfa7acad234e..45b1c0998a71 100644
--- a/devel/arm-elf-gcc31/Makefile
+++ b/devel/arm-elf-gcc31/Makefile
@@ -26,6 +26,7 @@ RUN_DEPENDS= ${PKGNAMEPREFIX}as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils \
GCC_REV= ${DISTNAME:S/gcc-//g}
PLIST_SUB+= GCC_REV=${GCC_REV}
USE_BZIP2= yes
+CFLAGS:= ${CFLAGS:C/-m(arch|cpu)=[a-zA-Z0-9]+//}
CONFIGURE_ARGS= --target=${PKGNAMEPREFIX:S/-$//} --enable-languages="c,c++,objc"
.if defined(DEFAULT_CPU)
CONFIGURE_ARGS+= --with-cpu="${DEFAULT_CPU}"