From 67eafd3844fec8a0476a8efb80f1ecb09dc49232 Mon Sep 17 00:00:00 2001 From: miod Date: Sat, 27 Jun 2015 21:50:55 +0000 Subject: [PATCH] Build the Xserver with large got (-xgot as(1) option) on mips; needed to accomodate the growth of recent changes. Tested on loongson. --- kdrive/Makefile.bsd-wrapper | 8 +++++++- xserver/Makefile.bsd-wrapper | 17 ++++++++--------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/kdrive/Makefile.bsd-wrapper b/kdrive/Makefile.bsd-wrapper index 8cb09c7b9..a26f5ccb0 100644 --- a/kdrive/Makefile.bsd-wrapper +++ b/kdrive/Makefile.bsd-wrapper @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.17 2014/02/07 19:40:52 bcallah Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.18 2015/06/27 21:50:55 miod Exp $ .include @@ -23,4 +23,10 @@ CONFIGURE_ARGS= --localstatedir=/var --sysconfdir=/etc/X11 \ realinstall: (cd hw/kdrive/ephyr ; make install) +.if ${MACHINE_CPU} == "mips64" +# disable cache file, because the compiler flags will not match +CONFIGURE_ARGS+= --cache-file=/dev/null +CFLAGS+= -Wa,-xgot +.endif + .include diff --git a/xserver/Makefile.bsd-wrapper b/xserver/Makefile.bsd-wrapper index a989f3015..3acbdefcc 100644 --- a/xserver/Makefile.bsd-wrapper +++ b/xserver/Makefile.bsd-wrapper @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.54 2015/05/31 13:23:03 matthieu Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.55 2015/06/27 21:50:55 miod Exp $ .include @@ -8,18 +8,11 @@ DIST= ${.CURDIR} NO_XORG_MACHINES= alpha aviion hppa64 landisk \ octeon solbourne vax -NO_XF86UTIL_MACHINES= landisk luna88k mac68k octeon sgi sparc vax - .for M in ${NO_XORG_MACHINES} NO_XORG_${M} = --disable-xorg .endfor NO_XORG_OPTION=${NO_XORG_${MACHINE}} -.for M in ${NO_XF86UTIL_MACHINES} -NO_XF86_UTIL_${M} = --disable-xfree86-utils -.endfor -NO_XF86_UTIL_OPTION=${NO_XF86_UTIL_${MACHINE}} - .if ${XENOCARA_BUILD_GL:L} != "yes" GLX_OPTION= --disable-glx .endif @@ -41,8 +34,14 @@ CONFIGURE_ARGS= --localstatedir=/var --sysconfdir=/etc/X11 \ --enable-install-setuid --enable-privsep \ --enable-xcsecurity \ --without-fop --without-xmlto --without-xsltproc \ - --disable-dmx ${NO_XORG_OPTION} ${NO_XF86_UTIL_OPTION} \ + --disable-dmx ${NO_XORG_OPTION} \ --disable-unit-tests \ ${DRI_OPTION} +.if ${MACHINE_CPU} == "mips64" +# disable cache file, because the compiler flags will not match +CONFIGURE_ARGS+= --cache-file=/dev/null +CFLAGS+= -Wa,-xgot +.endif + .include