aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2014-05-31 22:15:47 +0800
committerkwm <kwm@FreeBSD.org>2014-05-31 22:15:47 +0800
commitcca7675bb241e3d00bf4cd03c225eb1ed57bc14f (patch)
tree08a72d735095c571391c89b41ebd6034ae94407d
parent15d15d93d8c266e7b782ef7b5ba442a6c970732a (diff)
downloadfreebsd-ports-gnome-cca7675bb241e3d00bf4cd03c225eb1ed57bc14f.tar.gz
freebsd-ports-gnome-cca7675bb241e3d00bf4cd03c225eb1ed57bc14f.tar.zst
freebsd-ports-gnome-cca7675bb241e3d00bf4cd03c225eb1ed57bc14f.zip
Move the ARCH = i386 check to bsd.mesalib.mk so it applies to all
Mesa ports. This will unbreak libglapi/libGL/libglesv2 on i386. This was probably exposed by when the libglapi port was added.
-rw-r--r--graphics/dri/Makefile3
-rw-r--r--graphics/libGL/bsd.mesalib.mk5
2 files changed, 6 insertions, 2 deletions
diff --git a/graphics/dri/Makefile b/graphics/dri/Makefile
index aaea0a78fdc0..64489bbc58b1 100644
--- a/graphics/dri/Makefile
+++ b/graphics/dri/Makefile
@@ -26,8 +26,7 @@ USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto
CC=clang
CXX=clang++
CPP=clang-cpp
-# i386 triggers clang bug 19778. This happens with clang 3.4.1 and older.
-. elif ${OSVERSION} < 901500 || ${ARCH} == i386
+. elif ${OSVERSION} < 901500
USE_GCC=yes
. endif
.endif
diff --git a/graphics/libGL/bsd.mesalib.mk b/graphics/libGL/bsd.mesalib.mk
index eeb3a7a9a48e..ab2ec5997eba 100644
--- a/graphics/libGL/bsd.mesalib.mk
+++ b/graphics/libGL/bsd.mesalib.mk
@@ -56,6 +56,11 @@ SHEBANG_FILES= src/gallium/*/*/*.py src/gallium/tools/trace/*.py \
src/gallium/drivers/svga/svgadump/svga_dump.py \
src/glsl/tests/compare_ir src/mapi/glapi/gen/*.py \
src/mapi/mapi/mapi_abi.py
+
+# i386 triggers clang bug 19778. This happens with clang 3.4.1 and older.
+. if ${ARCH} == i386
+USE_GCC=yes
+. endif
.else
CONFIGURE_ARGS+=--disable-glut --disable-glw --disable-glu