Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librt Add the same ppc64 hack that libposix needs.
details: https://anonhg.NetBSD.org/src/rev/cd4231667beb
branches: trunk
changeset: 770645:cd4231667beb
user: christos <christos%NetBSD.org@localhost>
date: Thu Oct 27 18:45:44 2011 +0000
description:
Add the same ppc64 hack that libposix needs.
diffstat:
lib/librt/Makefile | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 205fea5ee8b0 -r cd4231667beb lib/librt/Makefile
--- a/lib/librt/Makefile Thu Oct 27 17:21:27 2011 +0000
+++ b/lib/librt/Makefile Thu Oct 27 18:45:44 2011 +0000
@@ -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_rr_get_interval.3
MLINKS+= sched.3 sched_yield.3
-.include <bsd.own.mk>
.include "${.CURDIR}/../libc/libcincludes.mk"
@@ -45,4 +46,11 @@
.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>
Home |
Main Index |
Thread Index |
Old Index