File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ GFX_SRCS = gfx/gfx_video.c tests/gfx_video_test.c
1313# Raylib-based graphics demo (Phase 1 skeleton, no interpreter)
1414GFX_DEMO_SRCS = gfx/gfx_video.c gfx/gfx_raylib.c
1515RAYLIB_CFLAGS = $(shell pkg-config --cflags raylib 2>/dev/null)
16- RAYLIB_LDFLAGS = $(shell pkg-config --libs raylib 2>/dev/null) -ldl - lpthread
16+ RAYLIB_LDFLAGS = $(shell pkg-config --libs raylib 2>/dev/null) -lpthread
1717
1818# Integrated graphics build: BASIC interpreter + raylib window
1919GFX_BIN_SRCS = basic.c petscii.c gfx/gfx_video.c gfx/gfx_raylib.c
@@ -27,9 +27,12 @@ LDFLAGS ?= -lm
2727ifeq ($(OS ) ,Windows_NT)
2828 EXE := .exe
2929 RM := del /F /Q
30+ # MinGW does not provide libdl; pthreads come from winpthreads.
31+ RAYLIB_LDFLAGS = $(shell pkg-config --libs raylib 2>/dev/null) -lwinpthread
3032else
3133 EXE :=
3234 RM := rm -f
35+ RAYLIB_LDFLAGS = $(shell pkg-config --libs raylib 2>/dev/null) -ldl -lpthread
3336endif
3437
3538all : $(TARGET )$(EXE )
You can’t perform that action at this time.
0 commit comments