On kris@ suggestion use _CPUCFLAGS to get -mtune also. And I had forgotten
CXXFLAGS
This commit is contained in:
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
|
@ -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} ; \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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} ; \
|
||||
|
|
Loading…
Reference in a new issue