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