From 372285ef981bb33fd9ba05c9e6d396b59ac33825 Mon Sep 17 00:00:00 2001 From: Dave Voutila Date: Thu, 13 Mar 2025 11:47:00 -0400 Subject: [PATCH] Fix building and cleaning examples on OpenBSD. (#471) --- examples/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/Makefile b/examples/Makefile index 2ca6127..c282701 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -277,6 +277,9 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) ifeq ($(PLATFORM_OS),BSD) # Consider -L$(RAYLIB_INSTALL_PATH) LDFLAGS += -L. -Lsrc -L/usr/local/lib + ifeq ($(shell uname),OpenBSD) + LDFLAGS += -L/usr/X11R6/lib + endif endif ifeq ($(PLATFORM_OS),LINUX) # Reset everything. @@ -384,6 +387,10 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) find . -type f -perm +ugo+x -delete rm -f *.o endif + ifeq ($(shell uname),OpenBSD) + find . -type f -perm 0755 -delete + rm -f *.o + endif endif ifeq ($(PLATFORM),PLATFORM_RPI) find . -type f -executable -delete