From cc8e0b6a3838dfc972bbe0d0bc59643609b3d3cd Mon Sep 17 00:00:00 2001 From: vsonnier Date: Sun, 30 Jun 2024 08:28:33 +0200 Subject: [PATCH] Fix #703 : Inclusion of libwinpthread depdends on the toolchains used --- Quake/Makefile.w32 | 6 ++++-- Quake/Makefile.w64 | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Quake/Makefile.w32 b/Quake/Makefile.w32 index f09615b1..70e337fa 100644 --- a/Quake/Makefile.w32 +++ b/Quake/Makefile.w32 @@ -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 @@ -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 . diff --git a/Quake/Makefile.w64 b/Quake/Makefile.w64 index 1d594fa2..c4e0881d 100644 --- a/Quake/Makefile.w64 +++ b/Quake/Makefile.w64 @@ -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 @@ -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 .