From b38f1a3781d8864e8336c8f3c393f2ce57f15950 Mon Sep 17 00:00:00 2001 From: Eike Decker Date: Mon, 21 Oct 2024 22:05:56 +0200 Subject: [PATCH] Making -static conditional based on libtype config --- src/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index d4db1e6..cf75a1f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -264,7 +264,11 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) # NOTE: WinMM library required to set high-res timer resolution LDLIBS = -lraylib -lopengl32 -lgdi32 -lwinmm -lcomdlg32 -lole32 # Required for physac examples - LDLIBS += -static -lpthread + ifeq ($(RAYLIB_LIBTYPE),SHARED) + LDLIBS += -lpthread + else + LDLIBS += -static -lpthread + endif endif ifeq ($(PLATFORM_OS),LINUX) # Libraries for Debian GNU/Linux desktop compiling