View | Details | Raw Unified | Return to bug 282322 | Differences between
and this patch

Collapse All | Expand All

(-)b/graphics/mesa-devel/files/patch-meson.build (+11 lines)
Added Link Here
1
--- meson.build.orig	2024-10-25 19:42:43 UTC
2
+++ meson.build
3
@@ -509,6 +509,8 @@ if not have_mtls_dialect
4
   # cross-compiling, but because this is just an optimization we can skip it
5
   if meson.is_cross_build() and not meson.can_run_host_binaries()
6
     warning('cannot auto-detect -mtls-dialect when cross-compiling, using compiler default')
7
+  elif host_machine.system() == 'freebsd'
8
+    c_cpp_args += '-ftls-model=initial-exec'
9
   else
10
     # The way to specify the TLSDESC dialect is architecture-specific.
11
     # We probe both because there is not a fallback guaranteed to work for all
(-)b/graphics/mesa-devel/files/patch-src_util_u__thread.h (+11 lines)
Added Link Here
1
--- src/util/u_thread.h.orig	2024-10-23 20:19:48 UTC
2
+++ src/util/u_thread.h
3
@@ -50,7 +50,7 @@
4
  * but not with __thread
5
  */
6
 #define __THREAD_INITIAL_EXEC __thread
7
-#elif defined(__GLIBC__)
8
+#elif defined(__FreeBSD__) || defined(__GLIBC__)
9
 #define __THREAD_INITIAL_EXEC thread_local __attribute__((tls_model("initial-exec")))
10
 #define REALLY_INITIAL_EXEC
11
 #else

Return to bug 282322