[SUGGEST] CPUTYPE reflects to FFLAGS in bsd.cpu.mk
M. Warner Losh
imp at bsdimp.com
Tue Jun 17 15:23:13 PDT 2003
In message: <200306171629.h5HGTK1I036487 at nd250009.gab.xdsl.ne.jp>
Norikatsu Shigemura <nork at freebsd.org> writes:
: On Sun, 15 Jun 2003 17:43:50 -0700
: Kris Kennaway <kris at obsecurity.org> wrote:
: > > Humm.. Like following diff?
: > Not really what I had in mind.
: > > CXXFLAGS ?= ${CFLAGS:C/-std=[a-z:0-9]+//}
: > FFLAGS should be set similar to this.
:
: Ah. OK. Like this?
:
: Index: sys.mk
: ===================================================================
: RCS file: /home/ncvs/src/share/mk/sys.mk,v
: retrieving revision 1.67
: diff -u -r1.67 sys.mk
: --- sys.mk 1 Jun 2003 22:13:45 -0000 1.67
: +++ sys.mk 17 Jun 2003 16:27:28 -0000
: @@ -63,7 +63,7 @@
: FFLAGS ?= -O 1
: .else
: FC ?= f77
: -FFLAGS ?= -O
: +FFLAGS ?= ${CFLAGS}
+FFLAGS ?= ${CFLAGS:C/-std=[a-z:0-9]+//}}
: .endif
: EFLAGS ?=
might be better.
Warner
More information about the freebsd-hackers
mailing list