Skip to content

Commit 7c48fa9

Browse files
committed
Update Makefile
1 parent 6564cea commit 7c48fa9

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

examples/Makefile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -393,14 +393,14 @@ ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_GLFW)
393393
# NOTE: Required packages: libegl1-mesa-dev
394394
LDLIBS = -lraylib -lGL -lm -lpthread -ldl -lrt
395395

396-
# On X11 requires also below libraries
397-
LDLIBS += -lX11
398-
# NOTE: It seems additional libraries are not required any more, latest GLFW just dlopen them
399-
#LDLIBS += -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
400-
401-
# On Wayland windowing system, additional libraries requires
396+
# On Wayland, additional libraries requires
402397
ifeq ($(USE_WAYLAND_DISPLAY),TRUE)
403398
LDLIBS += -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
399+
else
400+
# On X11, additional libraries required
401+
LDLIBS += -lX11
402+
# NOTE: It seems additional libraries are not required any more, latest GLFW just dlopen them
403+
#LDLIBS += -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
404404
endif
405405
# Explicit link to libc
406406
ifeq ($(RAYLIB_LIBTYPE),SHARED)
@@ -439,15 +439,16 @@ ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_SDL)
439439
# NOTE: Required packages: libegl1-mesa-dev
440440
LDLIBS = -lraylib $(SDL_LIBRARIES) -lGL -lm -lpthread -ldl -lrt
441441

442-
# On X11 requires also below libraries
442+
# On X11, addition libraries required
443443
LDLIBS += -lX11
444444
# NOTE: It seems additional libraries are not required any more, latest GLFW just dlopen them
445445
#LDLIBS += -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
446446

447-
# On Wayland windowing system, additional libraries requires
447+
# On Wayland, additional libraries requires
448448
ifeq ($(USE_WAYLAND_DISPLAY),TRUE)
449449
LDLIBS += -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
450450
endif
451+
451452
# Explicit link to libc
452453
ifeq ($(RAYLIB_LIBTYPE),SHARED)
453454
LDLIBS += -lc

0 commit comments

Comments
 (0)