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 Fix MKCOMPATX11 build



details:   https://anonhg.NetBSD.org/src/rev/f9d129acebf6
branches:  trunk
changeset: 451332:f9d129acebf6
user:      christos <christos%NetBSD.org@localhost>
date:      Thu May 16 01:22:35 2019 +0000

description:
Fix MKCOMPATX11 build

diffstat:

 external/mit/xorg/lib/asm.mk                |  13 ++++++-------
 external/mit/xorg/lib/gallium/Makefile      |   7 +++----
 external/mit/xorg/lib/libGL/Makefile        |  15 ++++++++-------
 external/mit/xorg/lib/libpciaccess/Makefile |  15 +++------------
 4 files changed, 20 insertions(+), 30 deletions(-)

diffs (114 lines):

diff -r aa60225106ec -r f9d129acebf6 external/mit/xorg/lib/asm.mk
--- a/external/mit/xorg/lib/asm.mk      Wed May 15 18:27:51 2019 +0000
+++ b/external/mit/xorg/lib/asm.mk      Thu May 16 01:22:35 2019 +0000
@@ -1,17 +1,16 @@
-#      $NetBSD: asm.mk,v 1.2 2019/04/05 10:31:53 maya Exp $
+#      $NetBSD: asm.mk,v 1.3 2019/05/16 01:22:35 christos Exp $
 
 # Shared with libmesa.mk / libGL / libglapi
 
-.if ${MACHINE} == "amd64"
-CPPFLAGS+=     \
+X11ASM_CPPFLAGS.x86_64+=       \
        -DUSE_SSE41 \
        -DUSE_X86_64_ASM
-.elif ${MACHINE} == "i386"
-CPPFLAGS+=     \
+
+X11ASM_CPPFLAGS.i386+= \
        -DUSE_X86_ASM \
        -DUSE_MMX_ASM \
        -DUSE_3DNOW_ASM \
        -DUSE_SSE_ASM \
        -DGLX_X86_READONLY_TEXT
-.elif ${MACHINE} == "sparc" || ${MACHINE} == "sparc64"
-.endif
+
+CPPFLAGS+= ${X11ASM_CPPFLAGS.${XORG_MACHINE_ARCH:U${MACHINE_ARCH}}}
diff -r aa60225106ec -r f9d129acebf6 external/mit/xorg/lib/gallium/Makefile
--- a/external/mit/xorg/lib/gallium/Makefile    Wed May 15 18:27:51 2019 +0000
+++ b/external/mit/xorg/lib/gallium/Makefile    Thu May 16 01:22:35 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2019/05/11 17:44:16 christos Exp $
+# $NetBSD: Makefile,v 1.27 2019/05/16 01:22:35 christos Exp $
 
 # Link the gallium mega driver.
 
@@ -1045,9 +1045,8 @@
 .endif
 
 # Needs 64bit atomics
-.if ${MACHINE} == "i386"
-CPPFLAGS+=     -march=i586
-.endif
+CPPFLAGS.i386+= -march=i586
+CPPFLAGS+=     ${CPPFLAGS.${XORG_MACHINE_ARCH:U${MACHINE_ARCH}}}
 
 .include "../driver.mk"
 
diff -r aa60225106ec -r f9d129acebf6 external/mit/xorg/lib/libGL/Makefile
--- a/external/mit/xorg/lib/libGL/Makefile      Wed May 15 18:27:51 2019 +0000
+++ b/external/mit/xorg/lib/libGL/Makefile      Thu May 16 01:22:35 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.26 2019/04/18 22:49:08 mrg Exp $
+#      $NetBSD: Makefile,v 1.27 2019/05/16 01:22:36 christos Exp $
 
 .include <bsd.own.mk>
 
@@ -60,12 +60,13 @@
 SRCS.glapi=    glapi_gentable.c
 
 .PATH:         ${X11SRCDIR.Mesa}/src/mapi/glapi
-.if ${MACHINE_ARCH} == "i386"
-SRCS.glx+=                     glapi_x86.S
-.elif ${MACHINE_ARCH} == "x86_64"
-SRCS.glx+=                     glapi_x86-64.S
-.elif ${MACHINE_ARCH} == "sparc"
-SRCS.glx+=                     glapi_sparc.S
+
+SRCS.i386.glx=         glapi_x86.S
+SRCS.x86_64.glx=       glapi_x86-64.S
+SRCS.sparc.glx=                glapi_sparc.S
+
+.if !empty(SRCS.${MACHINE_ARCH}.glx)
+SRCS.glx += ${SRCS.${XORG_MACHINE_ARCH:U${MACHINE_ARCH}}.glx}
 .else
 SRCS.glapi+=                   entry.c
 .endif
diff -r aa60225106ec -r f9d129acebf6 external/mit/xorg/lib/libpciaccess/Makefile
--- a/external/mit/xorg/lib/libpciaccess/Makefile       Wed May 15 18:27:51 2019 +0000
+++ b/external/mit/xorg/lib/libpciaccess/Makefile       Thu May 16 01:22:35 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 2016/01/05 13:07:47 christos Exp $
+#      $NetBSD: Makefile,v 1.9 2019/05/16 01:22:36 christos Exp $
 
 .include <bsd.own.mk>
 
@@ -6,8 +6,6 @@
 .PATH: ${X11SRCDIR.${LIB}}/src
 .PATH: ${X11SRCDIR.${LIB}}/include
 
-XORG_MACHINE_ARCH?=${MACHINE_ARCH}
-
 SRCS=  common_bridge.c \
        common_io.c \
        common_iterator.c \
@@ -33,16 +31,9 @@
 LIBDPLIBS+=    pci     ${NETBSDSRCDIR}/lib/libpci \
                z       ${NETBSDSRCDIR}/lib/libz
 
-.if ${XORG_MACHINE_ARCH} == "i386" || ${XORG_MACHINE_ARCH} == "x86_64"
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
 CPPFLAGS+=     -DHAVE_MTRR
-.endif
-
-.if ${XORG_MACHINE_ARCH} == "i386"
-LIBDPLIBS+=    i386 ${NETBSDSRCDIR}/lib/libarch
-.endif
-
-.if ${XORG_MACHINE_ARCH} == "x86_64"
-LIBDPLIBS+=    x86_64 ${NETBSDSRCDIR}/lib/libarch
+LIBDPLIBS+=    ${XORG_MACHINE_ARCH:U${MACHINE_ARCH}} ${NETBSDSRCDIR}/lib/libarch
 .endif
 
 .include <bsd.x11.mk>



Home | Main Index | Thread Index | Old Index