Module Name: src
Committed By: christos
Date: Thu Oct 27 18:45:44 UTC 2011
Modified Files:
src/lib/librt: Makefile
Log Message:
Add the same ppc64 hack that libposix needs.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/librt/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/librt/Makefile
diff -u src/lib/librt/Makefile:1.13 src/lib/librt/Makefile:1.14
--- src/lib/librt/Makefile:1.13 Mon Jun 7 03:26:21 2010
+++ src/lib/librt/Makefile Thu Oct 27 14:45:44 2011
@@ -1,7 +1,9 @@
-# $NetBSD: Makefile,v 1.13 2010/06/07 07:26:21 jruoho Exp $
+# $NetBSD: Makefile,v 1.14 2011/10/27 18:45:44 christos Exp $
#
-WARNS= 2
+.include <bsd.own.mk>
+
+WARNS= 4
LIB= rt
SRCS= sem.c
@@ -37,7 +39,6 @@ MLINKS+= sched.3 sched_get_priority_min.
MLINKS+= sched.3 sched_rr_get_interval.3
MLINKS+= sched.3 sched_yield.3
-.include <bsd.own.mk>
.include "${.CURDIR}/../libc/libcincludes.mk"
@@ -45,4 +46,11 @@ AFLAGS+=-I${ARCHDIR}
.include "${.CURDIR}/sys/Makefile.inc"
+.if ${MACHINE_ARCH} == "powerpc64"
+# XXX: How come it does not resolve from libc?
+CPPFLAGS+=-I${NETBSDSRCDIR}/lib/libc/include
+.PATH.c: ${NETBSDSRCDIR}/lib/libc/gen
+SRCS+= _errno.c
+.endif
+
.include <bsd.lib.mk>