aboutsummaryrefslogtreecommitdiffstats
path: root/devel/i386-rtems-gcc
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2004-01-22 20:12:48 +0800
committerjeh <jeh@FreeBSD.org>2004-01-22 20:12:48 +0800
commite0553a8d96a6f05a4ba5ca835611b2b84a62f81d (patch)
tree8306eed1e4090b172407a4148076a689938472c9 /devel/i386-rtems-gcc
parent9cc67462a58699273ba8f48865c947989cf8db2d (diff)
downloadfreebsd-ports-gnome-e0553a8d96a6f05a4ba5ca835611b2b84a62f81d.tar.gz
freebsd-ports-gnome-e0553a8d96a6f05a4ba5ca835611b2b84a62f81d.tar.zst
freebsd-ports-gnome-e0553a8d96a6f05a4ba5ca835611b2b84a62f81d.zip
Revert back to previous method to remove the CPU related entries from
CFLAGS. At least on 4.9, the new changes to bsd.port.mk don't like if _CPUCFLAGS is empty.
Diffstat (limited to 'devel/i386-rtems-gcc')
-rw-r--r--devel/i386-rtems-gcc/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/devel/i386-rtems-gcc/Makefile b/devel/i386-rtems-gcc/Makefile
index ef8d0766a9ba..32ac2e289eec 100644
--- a/devel/i386-rtems-gcc/Makefile
+++ b/devel/i386-rtems-gcc/Makefile
@@ -61,9 +61,14 @@ CONFIGURE_SCRIPT?= ../${GCCNAME}/configure
PATCH_WRKSRC= ${WRKDIR}
PATCH_STRIP= -p
-WITHOUT_CPU_CFLAGS= true
-MAKE_FLAGS= LANGUAGES="c c++ java"
-MAKE_ENV= MACHINE_ARCH=${RTEMS_ARCH}
+NO_CPU_FLAGS= true
+MAKE_FLAGS= LANGUAGES="c c++ java"
+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=[^ ]*//:C/-mtune=[^ ]*//}
+CXXFLAGS:= ${CXXFLAGS:C/-mcpu=[^ ]*//:C/-march=[^ ]*//:C/-mtune=[^ ]*//}
MAN1= ${LCLTARGET}-gcc.1 ${LCLTARGET}-g++.1 ${LCLTARGET}-gcj.1 \
cpp.1 gcov.1 gcjh.1 jv-scan.1 jcf-dump.1 gij.1 \