Date: Sun, 15 Jun 2003 23:23:41 +0900 (JST) From: Norikatsu Shigemura <nork@FreeBSD.org> To: freebsd-hackers@FreeBSD.org Cc: Kris Kennaway <kris@obsecurity.org> Subject: Re: [SUGGEST] CPUTYPE reflects to FFLAGS in bsd.cpu.mk Message-ID: <200306151423.h5FENf1I056184@nd250009.gab.xdsl.ne.jp> In-Reply-To: <20030615001154.GA1373@rot13.obsecurity.org> References: <200306142005.h5EK5s1I017984@nd250009.gab.xdsl.ne.jp> <20030615001154.GA1373@rot13.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 14 Jun 2003 17:11:55 -0700 Kris Kennaway <kris@obsecurity.org> wrote: > > .if !defined(NO_CPU_CFLAGS) > > CFLAGS += ${_CPUCFLAGS} > > +FFLAGS += ${_CPUCFLAGS} > > .endif > The better place to do this would be in sys.mk. See how CXXFLAGS is handled there. Humm.. Like following diff? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Index: bsd.cpu.mk =================================================================== RCS file: /home/ncvs/src/share/mk/bsd.cpu.mk,v retrieving revision 1.28 diff -u -r1.28 bsd.cpu.mk --- bsd.cpu.mk 22 May 2003 16:56:46 -0000 1.28 +++ bsd.cpu.mk 15 Jun 2003 14:20:03 -0000 @@ -142,9 +142,3 @@ .if ${MACHINE_ARCH} == "alpha" _CPUCFLAGS += -mieee .endif - -# NB: COPTFLAGS is handled in /usr/src/sys/conf/Makefile.<arch> - -.if !defined(NO_CPU_CFLAGS) -CFLAGS += ${_CPUCFLAGS} -.endif 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 15 Jun 2003 14:21:37 -0000 @@ -40,6 +40,9 @@ CC ?= cc .endif CFLAGS ?= -O -pipe +.if !defined(NO_CPU_CFLAGS) +CFLAGS += ${_CPUCFLAGS} +.endif CXX ?= c++ CXXFLAGS ?= ${CFLAGS:C/-std=[a-z:0-9]+//} @@ -64,6 +67,9 @@ .else FC ?= f77 FFLAGS ?= -O +.endif +.if !defined(NO_CPU_FFLAGS) +FFLAGS += ${_CPUCFLAGS} .endif EFLAGS ?=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306151423.h5FENf1I056184>