libGL: rebuild against libllvm.so.6

This commit is contained in:
maxice8 2018-03-09 08:24:06 -03:00 committed by Leаh Neukirchen
parent 90a054e8f2
commit 494950f9b7
2 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,22 @@
Source: Upstream
Upstream: 5d61fa4e68b7eb6d481a37efdbb35fdce675a6ad
Reason: Fixes compilation with llvm6
--- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
+++ src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
@@ -830,7 +830,11 @@ lp_create_builder(LLVMContextRef ctx, enum lp_float_mode float_mode)
llvm::unwrap(builder)->setFastMathFlags(flags);
break;
case LP_FLOAT_MODE_UNSAFE_FP_MATH:
+#if HAVE_LLVM >= 0x0600
+ flags.setFast();
+#else
flags.setUnsafeAlgebra();
+#endif
llvm::unwrap(builder)->setFastMathFlags(flags);
break;
}
--
cgit v1.1

View file

@ -1,7 +1,7 @@
# Template build file for 'libGL'.
pkgname=libGL
version=17.3.3
revision=2
revision=3
wrksrc="mesa-${version}"
build_style=gnu-configure
configure_args="--enable-shared-glapi --enable-gbm