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