Skip to content

Commit

Permalink
Making -static conditional based on libtype config
Browse files Browse the repository at this point in the history
  • Loading branch information
zet23t committed Oct 21, 2024
1 parent 193d281 commit b38f1a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b38f1a3

Please sign in to comment.