From f2d920115942c9d40886d80a1e38584d32da7a1c Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 18 Nov 2024 13:58:25 +0000 Subject: [PATCH] dont link x11 if using DRM --- raylib/build.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/raylib/build.py b/raylib/build.py index 2bfe6b8..81fa11a 100644 --- a/raylib/build.py +++ b/raylib/build.py @@ -175,11 +175,13 @@ def build_unix(): else: #platform.system() == "Linux": print("BUILDING FOR LINUX") extra_link_args = get_lib_flags() + [ '-lm', '-lpthread', '-lGL', - '-lrt', '-lm', '-ldl', '-lX11', '-lpthread', '-latomic'] + '-lrt', '-lm', '-ldl', '-lpthread', '-latomic'] if RAYLIB_PLATFORM=="SDL": - extra_link_args += ['-lSDL2'] + extra_link_args += ['-lX11','-lSDL2'] elif RAYLIB_PLATFORM=="DRM": extra_link_args += ['-lEGL', '-lgbm'] + else: + extra_link_args += ['-lX11'] extra_compile_args = ["-Wno-incompatible-pointer-types", "-D_CFFI_NO_LIMITED_API"] libraries = [] # Not sure why but we put them in extra_link_args instead so *shouldnt* be needed here