Skip to content

Commit

Permalink
Fix FreeBSD build
Browse files Browse the repository at this point in the history
  • Loading branch information
tjammer committed Jan 12, 2024
1 parent b6d55f5 commit 50148ad
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/c/freebsd.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
diff -u a/vendor/raylib/src/Makefile b/vendor/raylib/src/Makefile
--- a/vendor/raylib/src/Makefile
+++ b/vendor/raylib/src/Makefile
@@ -225,7 +225,8 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
@@ -326,6 +326,7 @@ ifeq ($(RAYLIB_BUILD_MODE),RELEASE)
endif
ifeq ($(PLATFORM_OS),BSD)
# FreeBSD, OpenBSD, NetBSD, DragonFly default compiler
- CC = clang
+ CC = gcc
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
CFLAGS += -O1
+ CFLAGS += -fPIC
endif
endif
ifeq ($(PLATFORM),PLATFORM_RPI)
ifeq ($(PLATFORM),PLATFORM_ANDROID)
CFLAGS += -O2

0 comments on commit 50148ad

Please sign in to comment.