lots of updates

This commit is contained in:
Ella-0 2021-01-31 11:09:14 +00:00
parent 872362f202
commit c89aa236bd
45 changed files with 5388 additions and 74 deletions

View file

@ -0,0 +1,24 @@
--- a/meson.build
+++ b/meson.build
@@ -448,7 +448,8 @@
# Android uses emutls for versions <= P/28. For USE_ELF_TLS we need ELF TLS.
use_elf_tls = false
-if not ['windows', 'freebsd', 'openbsd', 'haiku'].contains(host_machine.system()) and (not with_platform_android or get_option('platform-sdk-version') >= 29)
+with_use_elf_tls = get_option('use-elf-tls')
+if with_use_elf_tls and not ['windows', 'freebsd'].contains(host_machine.system()) and (not with_platform_android or get_option('platform-sdk-version') >= 29)
pre_args += '-DUSE_ELF_TLS'
use_elf_tls = true
endif
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -464,3 +464,9 @@
value : true,
description : 'use msse2 flag for mingw x86. Default: true',
)
+option(
+ 'use-elf-tls',
+ type : 'boolean',
+ value : false,
+ description : 'Build support for initial-exec TLS model'
+)

View file

@ -7,7 +7,10 @@ fetch() {
tar -xf $pkgname-$pkgver.tar.gz
mkdir $pkgname-$pkgver/build
cp ../byacc-out-mid-build.patch .
cp ../alpine-tls.patch .
cp ../LICENSE .
cd $pkgname-$pkgver
patch -p1 < ../alpine-tls.patch
}
build() {
@ -16,10 +19,10 @@ build() {
meson .. \
--prefix=/usr \
--buildtype=release \
-Dplatforms= \
-Dplatforms=wayland \
-Ddri3=true \
-Ddri-drivers=i915,i965 \
-Dgallium-drivers= \
-Dgallium-drivers=iris \
-Dgallium-vdpau=false \
-Dgallium-xvmc=false \
-Dgallium-omx=disabled \