Source-Changes-HG archive

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

[src/trunk]: src/lib/libposix HACK: Include _errno.c here for powerpc64 build...



details:   https://anonhg.NetBSD.org/src/rev/0b9ccb166385
branches:  trunk
changeset: 770643:0b9ccb166385
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 27 17:18:09 2011 +0000

description:
HACK: Include _errno.c here for powerpc64 build. Otherwise __errno does not
resolve. Why?

diffstat:

 lib/libposix/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 77a416904a3a -r 0b9ccb166385 lib/libposix/Makefile
--- a/lib/libposix/Makefile     Thu Oct 27 16:12:52 2011 +0000
+++ b/lib/libposix/Makefile     Thu Oct 27 17:18:09 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.14 2008/10/26 07:28:49 mrg Exp $
+#      $NetBSD: Makefile,v 1.15 2011/10/27 17:18:09 christos Exp $
 
 LIB=   posix
 
@@ -14,6 +14,13 @@
 
 AFLAGS+=-I${ARCHDIR}
 
+.if ${MACHINE_ARCH} == "powerpc64"
+# XXX: How come it does not resolve from libc?
+.PATH.c: ${NETBSDSRCDIR}/lib/libc/gen
+SRCS+= _errno.c
+.endif
+
 .include "${.CURDIR}/sys/Makefile.inc"
+SRCS+=_errno.c
 
 .include <bsd.lib.mk>



Home | Main Index | Thread Index | Old Index