From e3507c5925ac861ba9f45884e6b415e04fd762df Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Wed, 29 Apr 2026 08:25:21 +1000 Subject: [PATCH] Fixed raylib build options --- README.md | 3 +-- source/makefile | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6f24c49..3913af3 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/source/makefile b/source/makefile index dcf56b3..60dfb13 100644 --- a/source/makefile +++ b/source/makefile @@ -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