Source-Changes-HG archive

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

[src/trunk]: src/lib/libm build s_frexp.c, s_ldexp.c and s_modf.c here for ne...



details:   https://anonhg.NetBSD.org/src/rev/4d41252a7349
branches:  trunk
changeset: 753452:4d41252a7349
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Mar 29 06:59:42 2010 +0000

description:
build s_frexp.c, s_ldexp.c and s_modf.c here for new platforms, since they
don't exist as compat functions in libc.

current list of new platforms: powerpc64.

from dennis.c.ferguson%gmail.com@localhost in PR#43042.  idea to not put compat
functions into new platforms from drochner@netbsd.

diffstat:

 lib/libm/Makefile |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r b1a41da94f52 -r 4d41252a7349 lib/libm/Makefile
--- a/lib/libm/Makefile Mon Mar 29 05:16:08 2010 +0000
+++ b/lib/libm/Makefile Mon Mar 29 06:59:42 2010 +0000
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.92 2010/01/11 16:28:39 christos Exp $
+#  $NetBSD: Makefile,v 1.93 2010/03/29 06:59:42 mrg Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -140,8 +140,13 @@
        llroundf.c \
        s_fmax.c s_fmaxf.c s_fmaxl.c s_fmin.c s_fminf.c s_fminl.c s_fdim.c
 
-# Also in libc.
-#COMMON_SRCS += s_frexp.c s_ldexp.c s_modf.c
+#
+# Add these for machines which don't have compatibility functions in libc,
+# since they appeared later than they became libc compatibility.
+#
+.if (${MACHINE_ARCH} == "powerpc64")
+COMMON_SRCS += s_frexp.c s_ldexp.c s_modf.c
+.endif
 
 .PATH: ${.CURDIR}/compat
 COMMON_SRCS+= compat_cabs.c compat_cabsf.c



Home | Main Index | Thread Index | Old Index