diff options
author | dfr <dfr@FreeBSD.org> | 1998-12-17 22:36:21 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-12-17 22:36:21 +0000 |
commit | 1f39998b9a871d0af0b6eca5478c4a2d22ebb817 (patch) | |
tree | 59522bf80b5d548b6476d716f9d1ed627ba52574 /share | |
parent | 904988fa58941063c825c67b15eb3a717ab11104 (diff) | |
download | FreeBSD-src-1f39998b9a871d0af0b6eca5478c4a2d22ebb817.zip FreeBSD-src-1f39998b9a871d0af0b6eca5478c4a2d22ebb817.tar.gz |
Move some compile flags from the kernel makefile to bsd.kern.mk so that
kernel modules are built with the right flags.
Suggested by: Andrew Gallatin <gallatin@cs.duke.edu>
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.kern.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/share/mk/bsd.kern.mk b/share/mk/bsd.kern.mk index 7f423b8..40e18cf 100644 --- a/share/mk/bsd.kern.mk +++ b/share/mk/bsd.kern.mk @@ -1,4 +1,4 @@ -# $Id: bsd.kern.mk,v 1.10 1998/09/09 10:04:58 bde Exp $ +# $Id: bsd.kern.mk,v 1.11 1998/12/14 21:03:27 archie Exp $ # # Warning flags for compiling the kernel and components of the kernel. @@ -14,3 +14,11 @@ CWARNFLAGS?= -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \ # When working on removing warnings from code, the `-Werror' flag should be # of material assistance. # + +# +# On the alpha, make sure that we don't use floating-point registers and +# allow the use of EV56 instructions (only needed for low-level i/o). +# +.if ${MACHINE_ARCH} == "alpha" +CFLAGS+= -mno-fp-regs -Wa,-mev56 +.endif |