Skip to content

Commit 50148ad

Browse files
committed
Fix FreeBSD build
1 parent b6d55f5 commit 50148ad

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/c/freebsd.patch

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
diff -u a/vendor/raylib/src/Makefile b/vendor/raylib/src/Makefile
22
--- a/vendor/raylib/src/Makefile
33
+++ b/vendor/raylib/src/Makefile
4-
@@ -225,7 +225,8 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
4+
@@ -326,6 +326,7 @@ ifeq ($(RAYLIB_BUILD_MODE),RELEASE)
55
endif
6-
ifeq ($(PLATFORM_OS),BSD)
7-
# FreeBSD, OpenBSD, NetBSD, DragonFly default compiler
8-
- CC = clang
9-
+ CC = gcc
6+
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
7+
CFLAGS += -O1
108
+ CFLAGS += -fPIC
119
endif
12-
endif
13-
ifeq ($(PLATFORM),PLATFORM_RPI)
10+
ifeq ($(PLATFORM),PLATFORM_ANDROID)
11+
CFLAGS += -O2

0 commit comments

Comments
 (0)