Add raylib
Some checks failed
release / linux/aarch64 (pull_request) Successful in 1m56s
release / linux/armv7 (pull_request) Successful in 2m15s
release / linux/i686 (pull_request) Successful in 2m3s
release / linux/x86_64 (pull_request) Successful in 1m54s
release / android (pull_request) Successful in 2m50s
release / freebsd/x86_64 (pull_request) Failing after 5m3s
release / windows/i686 (pull_request) Successful in 2m17s
release / windows/x86_64 (pull_request) Successful in 2m13s

This commit is contained in:
pedro-bento 2026-10-22 22:05:42 +01:00
parent 9b8c285cc7
commit 8f52915701

View file

@ -86,8 +86,18 @@ endif
# BSD (ELF, dlopen lives in libc) # BSD (ELF, dlopen lives in libc)
ifeq ($(OS_KIND),bsd) ifeq ($(OS_KIND),bsd)
EXPORT_LDFLAGS := -Wl,-E EXPORT_LDFLAGS := -Wl,-E
# raylib's own BSD list lacks the X11 set its examples link. # ld searches /usr/lib only. pkg(8) installs into /usr/local (FreeBSD,
PLAT_LIBS := -lm -lGL -lpthread -lX11 -lXrandr -lXinerama -lXi -lXcursor # DragonFly), pkgsrc into /usr/pkg (NetBSD), and base X11 lives in
# /usr/X11R6 (OpenBSD) or /usr/X11R7 (NetBSD), so every -l below needs an
# explicit -L. raylib's own BSD link list omits the X11 set and these paths,
# which is why its examples only link on a system with the libs on the
# default search path.
BSD_LIBDIRS := -L/usr/local/lib
ifneq (,$(filter OpenBSD NetBSD,$(PLATFORM)))
BSD_LIBDIRS += -L/usr/pkg/lib -L/usr/X11R6/lib -L/usr/X11R7/lib
endif
PLAT_LIBS := $(BSD_LIBDIRS) -lm -lGL -lpthread \
-lX11 -lXrandr -lXinerama -lXi -lXcursor
ifneq (,$(filter $(PLATFORM),OpenBSD NetBSD)) ifneq (,$(filter $(PLATFORM),OpenBSD NetBSD))
PLAT_LIBS += -lossaudio PLAT_LIBS += -lossaudio
endif endif
@ -332,6 +342,7 @@ print-config:
@echo "CPPFLAGS = $(CPPFLAGS)" @echo "CPPFLAGS = $(CPPFLAGS)"
@echo "EXPORT_LDFLAGS = $(EXPORT_LDFLAGS)" @echo "EXPORT_LDFLAGS = $(EXPORT_LDFLAGS)"
@echo "PLAT_LIBS = $(PLAT_LIBS)" @echo "PLAT_LIBS = $(PLAT_LIBS)"
@echo "BSD_LIBDIRS = $(BSD_LIBDIRS)"
@echo "LINK_TARGET = $(LINK_TARGET)" @echo "LINK_TARGET = $(LINK_TARGET)"
@echo "OBJ = $(OBJ)" @echo "OBJ = $(OBJ)"
@echo "HOST_CC = $(HOST_CC)" @echo "HOST_CC = $(HOST_CC)"