Skip to content

Commit 511d015

Browse files
authored
Merge pull request #7 from zet23t/main
Making -static conditional based on libtype config
2 parents 193d281 + b38f1a3 commit 511d015

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,11 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
264264
# NOTE: WinMM library required to set high-res timer resolution
265265
LDLIBS = -lraylib -lopengl32 -lgdi32 -lwinmm -lcomdlg32 -lole32
266266
# Required for physac examples
267-
LDLIBS += -static -lpthread
267+
ifeq ($(RAYLIB_LIBTYPE),SHARED)
268+
LDLIBS += -lpthread
269+
else
270+
LDLIBS += -static -lpthread
271+
endif
268272
endif
269273
ifeq ($(PLATFORM_OS),LINUX)
270274
# Libraries for Debian GNU/Linux desktop compiling

0 commit comments

Comments
 (0)