From d7742c908a7d62408782d133045ca3440e1d151b Mon Sep 17 00:00:00 2001 From: sunrisepeak Date: Thu, 4 Jun 2026 00:22:36 +0800 Subject: [PATCH] compat.glfw: declare abi:glibc capability (linux) Lets mcpp enforce that GLFW consumers use a glibc toolchain (it links the glibc X11/GL world); musl-static now fails fast with an actionable ABI error instead of a cryptic arc4random_buf failure. --- pkgs/c/compat.glfw.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/c/compat.glfw.lua b/pkgs/c/compat.glfw.lua index 381fa47..ced8119 100644 --- a/pkgs/c/compat.glfw.lua +++ b/pkgs/c/compat.glfw.lua @@ -56,7 +56,7 @@ package = { cflags = { "-D_DEFAULT_SOURCE", "-D_GLFW_X11" }, runtime = { dlopen_libs = { "libGLX.so.0", "libGL.so.1", "libGL.so" }, - capabilities = { "x11.display", "opengl.glx.driver" }, + capabilities = { "x11.display", "opengl.glx.driver", "abi:glibc" }, }, sources = { "src/x11_init.c",