aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2003-11-20 09:23:54 +0800
committerjeh <jeh@FreeBSD.org>2003-11-20 09:23:54 +0800
commite85d46bdca1fcc397196ddcbfbb10f77e9c9210a (patch)
tree5be9b9916eeb3626cd6c480841630dd68d6b255c /devel
parented7d5ff36cdcd51c2575fa447270c843a285ae99 (diff)
downloadfreebsd-ports-gnome-e85d46bdca1fcc397196ddcbfbb10f77e9c9210a.tar.gz
freebsd-ports-gnome-e85d46bdca1fcc397196ddcbfbb10f77e9c9210a.tar.zst
freebsd-ports-gnome-e85d46bdca1fcc397196ddcbfbb10f77e9c9210a.zip
On kris@ suggestion use _CPUCFLAGS to get -mtune also. And I had forgotten
CXXFLAGS
Diffstat (limited to 'devel')
-rw-r--r--devel/i386-rtems-g77/Makefile3
-rw-r--r--devel/i386-rtems-gcc/Makefile3
-rw-r--r--devel/i386-rtems-objc/Makefile3
3 files changed, 6 insertions, 3 deletions
diff --git a/devel/i386-rtems-g77/Makefile b/devel/i386-rtems-g77/Makefile
index 5b29ef4d31c1..02aeeffff677 100644
--- a/devel/i386-rtems-g77/Makefile
+++ b/devel/i386-rtems-g77/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} ; \
diff --git a/devel/i386-rtems-gcc/Makefile b/devel/i386-rtems-gcc/Makefile
index dcf726c154ff..5bdeda73c49b 100644
--- a/devel/i386-rtems-gcc/Makefile
+++ b/devel/i386-rtems-gcc/Makefile
@@ -67,7 +67,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}//}
MAN1= ${LCLTARGET}-gcc.1 ${LCLTARGET}-g++.1 ${LCLTARGET}-gcj.1 \
cpp.1 gcov.1 gcjh.1 jv-scan.1 jcf-dump.1 gij.1 \
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} ; \