Fixed raylib build options

This commit is contained in:
2026-04-29 08:25:21 +10:00
parent e88d905f3e
commit e3507c5925
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -7,8 +7,7 @@ See https://toylang.com/ for details.
## Raylib for RPi
```bash
#why does raylib fall back to SDL?
cmake -B build -DPLATFORM=SDL -DOPENGL_VERSION=Software
cmake -B build -DCMAKE_BUILD_TYPE="Release" -DPLATFORM="Desktop" -DOPENGL_VERSION="2.1"
cmake --build build
cd build && sudo make install
```
+1 -1
View File
@@ -1,7 +1,7 @@
#compiler settings
CC=gcc
CFLAGS+=-std=c17 -g -Wall -Werror -Wextra -Wpedantic -Wformat=2 -Wno-newline-eof
LIBS+=-lToy -lraylib -lSDL2 -lm
LIBS+=-lToy -lraylib -lX11 -lm
LDFLAGS+=-Wl,-rpath,'$$ORIGIN'
ifeq ($(shell uname),Darwin) #make sure there's enough space for the dylib fix