Skip to content

Commit 9027c75

Browse files
committed
fix windows mingw32
1 parent 5f9b18b commit 9027c75

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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)
1414
GFX_DEMO_SRCS = gfx/gfx_video.c gfx/gfx_raylib.c
1515
RAYLIB_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
1919
GFX_BIN_SRCS = basic.c petscii.c gfx/gfx_video.c gfx/gfx_raylib.c
@@ -27,9 +27,12 @@ LDFLAGS ?= -lm
2727
ifeq ($(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
3032
else
3133
EXE :=
3234
RM := rm -f
35+
RAYLIB_LDFLAGS = $(shell pkg-config --libs raylib 2>/dev/null) -ldl -lpthread
3336
endif
3437

3538
all: $(TARGET)$(EXE)

0 commit comments

Comments
 (0)