Subject: Re: port-i386/3510: libm build on i386 w/i387 should be easier
To: None <netbsd-bugs@NetBSD.ORG, he@vader.runit.sintef.no>
From: William O Ferry <WOFerry+@CMU.EDU>
List: netbsd-bugs
Date: 04/18/1997 11:27:44
I'm probably just pointing out the obvious here, but don't forget to
.include <bsd.own.mk> or something before this .if, or it'll never read
the value from /etc/mk.conf to enable this option. I wasn't even aware
that you needed to uncomment anything to get a library that actually
used the FPU. It might be nice if it was a more generic HAS_FPU or
something like that, for those of us with 486's and above (who don't
actually have an i387). Might be useful for the 68k platforms and
possibly others, too.
BTW, are there any other places in the NetBSD sources that I need to
uncomment? Does this mean I've been using the FPU emulation code all
this time? I don't have MATH_EMULATE enabled in my kernel.
Will Ferry
Excerpts from internet.computing.netbsd.netbsd-bugs: 18-Apr-97
port-i386/3510: libm build .. by Havard Eidnes@vader.runi
> *** Makefile.orig Fri Apr 18 11:35:15 1997
> --- Makefile Fri Apr 18 13:25:28 1997
> ***************
> *** 51,54 ****
> --- 51,55 ----
> .elif (${MACHINE_ARCH} == "i386")
> # Uncomment the following lines if you have a i387 (or i486 or Pentium)
> + .if defined(HAS_i387)
> .PATH: ${.CURDIR}/arch/i387
> ARCH_SRCS = e_acos.S e_asin.S e_atan2.S e_exp.S e_expf.S e_fmod.S e_log.S \
> ***************
> *** 60,63 ****
> --- 61,65 ----
> s_scalbn.S s_scalbnf.S s_significand.S s_significandf.S s_sin.S \
> s_sinf.S s_tan.S s_tanf.S
> + .endif
> .elif (${MACHINE_ARCH} == "m68k")
> .PATH: ${.CURDIR}/arch/mc68881
Will Ferry
--------------------------------------------------------------------------
William O Ferry <woferry@CMU.EDU> | finger: woferry@WarpDrive.RES.CMU.EDU
talk: finger for online status | http://warpdrive.res.cmu.edu/~woferry/
--------------------------------------------------------------------------