Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Add a new make variable "MKSOFTFLOAT". If not set ...



details:   https://anonhg.NetBSD.org/src/rev/91035cec5619
branches:  trunk
changeset: 511367:91035cec5619
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Jun 18 17:04:44 2001 +0000

description:
Add a new make variable "MKSOFTFLOAT".  If not set to "no", it adds
"-msoft-float" to COPTS and FOPTS, and possibly builds soft-float
library support (port specific).
Defaults to "no".

diffstat:

 share/mk/bsd.README |  6 +++++-
 share/mk/bsd.own.mk |  4 +++-
 share/mk/bsd.sys.mk |  7 ++++++-
 3 files changed, 14 insertions(+), 3 deletions(-)

diffs (57 lines):

diff -r 901654491415 -r 91035cec5619 share/mk/bsd.README
--- a/share/mk/bsd.README       Mon Jun 18 16:18:30 2001 +0000
+++ b/share/mk/bsd.README       Mon Jun 18 17:04:44 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.README,v 1.77 2001/05/31 05:04:41 simonb Exp $
+#      $NetBSD: bsd.README,v 1.78 2001/06/18 17:04:44 simonb Exp $
 #      @(#)bsd.README  8.2 (Berkeley) 4/2/94
 
 This is the README file for the new make "include" files for the BSD
@@ -291,6 +291,10 @@
                "i386" and some m68k machines, or set to "a.out" on
                other architectures].
 
+MKSOFTFLOAT    If "yes", build with options to enable the compiler to
+               generate output containing library calls for floating
+               point and possibly soft-float library support.  Defaults
+               to "no".
 
 bsd.own.mk is generally useful when building your own Makefiles so that
 they use the same default owners etc. as the rest of the tree.
diff -r 901654491415 -r 91035cec5619 share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Mon Jun 18 16:18:30 2001 +0000
+++ b/share/mk/bsd.own.mk       Mon Jun 18 17:04:44 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.own.mk,v 1.162 2001/06/02 02:22:35 tv Exp $
+#      $NetBSD: bsd.own.mk,v 1.163 2001/06/18 17:04:45 simonb Exp $
 
 .if !defined(_BSD_OWN_MK_)
 _BSD_OWN_MK_=1
@@ -305,4 +305,6 @@
 MKKERBEROS?=yes
 .endif
 
+MKSOFTFLOAT?=no
+
 .endif         # _BSD_OWN_MK_
diff -r 901654491415 -r 91035cec5619 share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Mon Jun 18 16:18:30 2001 +0000
+++ b/share/mk/bsd.sys.mk       Mon Jun 18 17:04:44 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.sys.mk,v 1.46 2000/12/30 04:11:34 itojun Exp $
+#      $NetBSD: bsd.sys.mk,v 1.47 2001/06/18 17:04:45 simonb Exp $
 #
 # Overrides used for NetBSD source tree builds.
 
@@ -35,6 +35,11 @@
 CPPFLAGS+= -D__AUDIT__
 .endif
 
+.if (${MKSOFTFLOAT} != "no")
+COPTS+=                -msoft-float
+FOPTS+=                -msoft-float
+.endif
+
 # Helpers for cross-compiling
 HOST_CC?=      cc
 HOST_CFLAGS?=  -O



Home | Main Index | Thread Index | Old Index