Skip to content

Commit

Permalink
dont link x11 if using DRM
Browse files Browse the repository at this point in the history
  • Loading branch information
electronstudio committed Nov 18, 2024
1 parent 581cda5 commit f2d9201
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions raylib/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f2d9201

Please sign in to comment.