Source-Changes-HG archive

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

[src/trunk]: src/external/mit/xorg/lib/libpciaccess don't blindly enable memo...



details:   https://anonhg.NetBSD.org/src/rev/9a4ba3b9416b
branches:  trunk
changeset: 359618:9a4ba3b9416b
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri Jan 14 19:44:04 2022 +0000

description:
don't blindly enable memory and IO access on macppc

diffstat:

 external/mit/xorg/lib/libpciaccess/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r e98ebbfb9511 -r 9a4ba3b9416b external/mit/xorg/lib/libpciaccess/Makefile
--- a/external/mit/xorg/lib/libpciaccess/Makefile       Fri Jan 14 19:31:44 2022 +0000
+++ b/external/mit/xorg/lib/libpciaccess/Makefile       Fri Jan 14 19:44:04 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.9 2019/05/16 01:22:36 christos Exp $
+#      $NetBSD: Makefile,v 1.10 2022/01/14 19:44:04 macallan Exp $
 
 .include <bsd.own.mk>
 
@@ -31,6 +31,11 @@
 LIBDPLIBS+=    pci     ${NETBSDSRCDIR}/lib/libpci \
                z       ${NETBSDSRCDIR}/lib/libz
 
+# do not blindly enable memory and IO access on macppc
+.if ${MACHINE} == "macppc"
+CPPFLAGS+=     -DAVOID_DEVICE_ENABLE
+.endif
+
 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
 CPPFLAGS+=     -DHAVE_MTRR
 LIBDPLIBS+=    ${XORG_MACHINE_ARCH:U${MACHINE_ARCH}} ${NETBSDSRCDIR}/lib/libarch



Home | Main Index | Thread Index | Old Index