Skip to content

Commit

Permalink
Fix #703 : Inclusion of libwinpthread depdends on the toolchains used
Browse files Browse the repository at this point in the history
  • Loading branch information
vsonnier committed Jun 30, 2024
1 parent bd23bc1 commit cc8e0b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Quake/Makefile.w32
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ LIBS := $(COMMON_LIBS) $(NET_LIBS) $(CODEC_LINK) $(CODECLIBS) $(VULKAN_LINK) $(V

SYSOBJ_RES = vkQuake.res

MINGW_PATH = ${MINGW_PREFIX}
LIBWINPTHREAD = $(MSYSTEM_PREFIX)/bin/libwinpthread-1.dll

# ---------------------------
# targets / rules
Expand All @@ -93,7 +93,9 @@ vkQuake.exe: $(SHADER_OBJS) $(OBJS) $(SYSOBJ_RES)
$(call DO_STRIP,$@)

dll:
cp $(MINGW_PATH)/bin/libwinpthread-1.dll .
if [ -f $(LIBWINPTHREAD) ]; then \
cp $(LIBWINPTHREAD) . ; \
fi
cp ../Windows/codecs/x86/*.dll .
cp ../Windows/SDL2/lib/*.dll .

Expand Down
6 changes: 4 additions & 2 deletions Quake/Makefile.w64
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ LIBS := $(COMMON_LIBS) $(NET_LIBS) $(CODEC_LINK) $(CODECLIBS) $(VULKAN_LINK) $(V

SYSOBJ_RES = vkQuake.res

MINGW_PATH = ${MINGW_PREFIX}
LIBWINPTHREAD = $(MSYSTEM_PREFIX)/bin/libwinpthread-1.dll

# ---------------------------
# targets / rules
Expand All @@ -87,7 +87,9 @@ vkQuake.exe: $(SHADER_OBJS) $(OBJS) $(SYSOBJ_RES)
$(call DO_STRIP,$@)

dll:
cp $(MINGW_PATH)/bin/libwinpthread-1.dll .
if [ -f $(LIBWINPTHREAD) ]; then \
cp $(LIBWINPTHREAD) . ; \
fi
cp ../Windows/codecs/x64/*.dll .
cp ../Windows/SDL2/lib64/*.dll .

Expand Down

0 comments on commit cc8e0b6

Please sign in to comment.