[SUGGEST] CPUTYPE reflects to FFLAGS in bsd.cpu.mk
Norikatsu Shigemura
nork at FreeBSD.org
Sun Jun 15 07:23:43 PDT 2003
On Sat, 14 Jun 2003 17:11:55 -0700
Kris Kennaway <kris at 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 ?=
More information about the freebsd-hackers
mailing list