summaryrefslogtreecommitdiff
path: root/graphics/mesa-dri/files/patch-meson.build
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2022-12-01 13:16:06 +0100
committerEmmanuel Vadot <manu@FreeBSD.org>2022-12-05 15:03:28 +0100
commit855947ebf7e738232a8bbf6d47cc56f2896f276f (patch)
treee8ebd5d0415c6d3e9627df028493c8deeddb4514 /graphics/mesa-dri/files/patch-meson.build
parentlang/gcc12-devel: Update to 12.2.1.s20221203 (diff)
graphics/mesa: Update to 22.3
Release notes: https://lists.freedesktop.org/archives/mesa-announce/2022-November/000695.html On top of the release notes it seems that Gallium XVMC is also removed, see https://gitlab.freedesktop.org/mesa/mesa/-/commit/8cc766d8f7eac26b7c029a2fac1bdfdba4776c29 for more info. Bump LLVM_DEFAULT to llvm15 so LTO works. Also update libclc to track the one from llvm15. Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D37580
Diffstat (limited to 'graphics/mesa-dri/files/patch-meson.build')
-rw-r--r--graphics/mesa-dri/files/patch-meson.build48
1 files changed, 0 insertions, 48 deletions
diff --git a/graphics/mesa-dri/files/patch-meson.build b/graphics/mesa-dri/files/patch-meson.build
deleted file mode 100644
index af9122cb85ff..000000000000
--- a/graphics/mesa-dri/files/patch-meson.build
+++ /dev/null
@@ -1,48 +0,0 @@
---- meson.build.orig 2022-10-11 18:53:31 UTC
-+++ meson.build
-@@ -1436,7 +1436,6 @@ functions_to_detect = {
- 'flock': '',
- 'strtok_r': '',
- 'getrandom': '',
-- 'qsort_r': '',
- 'qsort_s': '',
- }
-
-@@ -1445,6 +1444,37 @@ endforeach
- pre_args += '-DHAVE_@0@'.format(f.to_upper())
- endif
- endforeach
-+
-+if cpp.links('''
-+ #define _GNU_SOURCE
-+ #include <stdlib.h>
-+
-+ static int dcomp(const void *l, const void *r, void *t) { return 0; }
-+
-+ int main(int ac, char **av) {
-+ int arr[] = { 1 };
-+ void *t = NULL;
-+ qsort_r((void*)&arr[0], 1, 1, dcomp, t);
-+ return (0);
-+ }''',
-+ args : pre_args,
-+ name : 'GNU qsort_r')
-+ pre_args += '-DHAVE_GNU_QSORT_R'
-+elif cpp.links('''
-+ #include <stdlib.h>
-+
-+ static int dcomp(void *t, const void *l, const void *r) { return 0; }
-+
-+ int main(int ac, char **av) {
-+ int arr[] = { 1 };
-+ void *t = NULL;
-+ qsort_r((void*)&arr[0], 1, 1, t, dcomp);
-+ return (0);
-+ }''',
-+ args : pre_args,
-+ name : 'BSD qsort_r')
-+ pre_args += '-DHAVE_BSD_QSORT_R'
-+endif
-
- if cc.has_header_symbol('time.h', 'struct timespec')
- pre_args += '-DHAVE_STRUCT_TIMESPEC'