mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-20 20:04:19 +08:00
libepoxy: fix compilation
This commit is contained in:
parent
09fbbf3dd6
commit
e1aada209d
@ -1,8 +1,26 @@
|
||||
#TODO missing script for Meson, see https://github.com/anholt/libepoxy#building
|
||||
[source]
|
||||
tar = "https://download.gnome.org/sources/libepoxy/1.5/libepoxy-1.5.10.tar.xz"
|
||||
blake3 = "0ccee9635115fe417cfc4bc33ffd160bf1e2852bd6c03816b4af771d59462f53"
|
||||
patches = ["redox.patch"]
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"liborbital",
|
||||
"libpthread-stubs",
|
||||
"libx11",
|
||||
"libxau",
|
||||
"libxcb",
|
||||
"llvm18",
|
||||
"mesa",
|
||||
"mesa-glu",
|
||||
"x11proto",
|
||||
"zlib",
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
cookbook_meson \
|
||||
-Degl=no \
|
||||
-Dglx=no \
|
||||
-Dtests=false
|
||||
"""
|
||||
|
||||
18
recipes/wip/libs/other/libepoxy/redox.patch
Normal file
18
recipes/wip/libs/other/libepoxy/redox.patch
Normal file
@ -0,0 +1,18 @@
|
||||
diff -ruwN libepoxy-1.5.10/src/dispatch_common.c source/src/dispatch_common.c
|
||||
--- libepoxy-1.5.10/src/dispatch_common.c 2022-02-17 05:56:12.000000000 -0700
|
||||
+++ source/src/dispatch_common.c 2025-05-04 17:57:31.910921783 -0600
|
||||
@@ -264,13 +264,7 @@
|
||||
long begin_count;
|
||||
};
|
||||
|
||||
-static struct api api = {
|
||||
-#ifndef _WIN32
|
||||
- .mutex = PTHREAD_MUTEX_INITIALIZER,
|
||||
-#else
|
||||
- 0,
|
||||
-#endif
|
||||
-};
|
||||
+static struct api api = {0};
|
||||
|
||||
static bool library_initialized;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user