libGL: rebuild against libllvm.so.6
This commit is contained in:
parent
90a054e8f2
commit
494950f9b7
2 changed files with 23 additions and 1 deletions
22
srcpkgs/libGL/patches/use-new-llvm-flag-api.patch
Normal file
22
srcpkgs/libGL/patches/use-new-llvm-flag-api.patch
Normal 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
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template build file for 'libGL'.
|
# Template build file for 'libGL'.
|
||||||
pkgname=libGL
|
pkgname=libGL
|
||||||
version=17.3.3
|
version=17.3.3
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="mesa-${version}"
|
wrksrc="mesa-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-shared-glapi --enable-gbm
|
configure_args="--enable-shared-glapi --enable-gbm
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue