On kris@ suggestion use _CPUCFLAGS to get -mtune also. And I had forgotten

CXXFLAGS
This commit is contained in:
James E. Housley 2003-11-20 01:23:54 +00:00
parent b8674507fa
commit 8936655a35
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94417
3 changed files with 6 additions and 3 deletions

View file

@ -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} ; \

View file

@ -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 \

View file

@ -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} ; \