Module Name:    src
Committed By:   christos
Date:           Thu Oct 27 17:18:10 UTC 2011

Modified Files:
        src/lib/libposix: Makefile

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


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libposix/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libposix/Makefile
diff -u src/lib/libposix/Makefile:1.14 src/lib/libposix/Makefile:1.15
--- src/lib/libposix/Makefile:1.14	Sun Oct 26 03:28:49 2008
+++ src/lib/libposix/Makefile	Thu Oct 27 13:18:09 2011
@@ -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 @@ CPPFLAGS+=-I${NETBSDSRCDIR}/sys
 
 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>

Reply via email to