Fixed raylib build options
This commit is contained in:
@@ -7,8 +7,7 @@ See https://toylang.com/ for details.
|
|||||||
## Raylib for RPi
|
## Raylib for RPi
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#why does raylib fall back to SDL?
|
cmake -B build -DCMAKE_BUILD_TYPE="Release" -DPLATFORM="Desktop" -DOPENGL_VERSION="2.1"
|
||||||
cmake -B build -DPLATFORM=SDL -DOPENGL_VERSION=Software
|
|
||||||
cmake --build build
|
cmake --build build
|
||||||
cd build && sudo make install
|
cd build && sudo make install
|
||||||
```
|
```
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
#compiler settings
|
#compiler settings
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS+=-std=c17 -g -Wall -Werror -Wextra -Wpedantic -Wformat=2 -Wno-newline-eof
|
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'
|
LDFLAGS+=-Wl,-rpath,'$$ORIGIN'
|
||||||
|
|
||||||
ifeq ($(shell uname),Darwin) #make sure there's enough space for the dylib fix
|
ifeq ($(shell uname),Darwin) #make sure there's enough space for the dylib fix
|
||||||
|
|||||||
Reference in New Issue
Block a user