Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libkern On sparc64 memcpy and memset are provided by...



details:   https://anonhg.NetBSD.org/src/rev/c5c801f6b933
branches:  trunk
changeset: 785347:c5c801f6b933
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 10 07:31:03 2013 +0000

description:
On sparc64 memcpy and memset are provided by memcpyset.s (should have been
memcpyset.S, but...). Don't include them in the build because it breaks the
modular build where the kernel library is built as an object.

diffstat:

 sys/lib/libkern/Makefile.libkern |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 8be64fd488eb -r c5c801f6b933 sys/lib/libkern/Makefile.libkern
--- a/sys/lib/libkern/Makefile.libkern  Sun Mar 10 07:18:19 2013 +0000
+++ b/sys/lib/libkern/Makefile.libkern  Sun Mar 10 07:31:03 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.libkern,v 1.19 2013/01/23 22:34:37 matt Exp $
+#      $NetBSD: Makefile.libkern,v 1.20 2013/03/10 07:31:03 christos Exp $
 
 # 
 # Variable definitions for libkern.  
@@ -70,12 +70,16 @@
 SRCS+= strlcpy.c strlcat.c
 
 SRCS+= imax.c imin.c lmax.c lmin.c max.c min.c ulmax.c ulmin.c
-SRCS+= memcpy.c memmove.c
+SRCS+= memmove.c
 SRCS+= strchr.c strrchr.c
 SRCS+= memcmp.c
+
+.if (${MACHINE_ARCH} != "sparc64") # provided by memcpyset.s
+SRCS+= memcpy.c
 .if empty(SRCS:Mmemset2.*)
 SRCS+= memset.c 
 .endif
+.endif
 SRCS+= popcount32.c popcount64.c
 SRCS+= strtoul.c strtoll.c strtoull.c strtoumax.c
 



Home | Main Index | Thread Index | Old Index