summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/module.defs7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/module.defs b/test/module.defs
index 6f9904852..1f794e93a 100644
--- a/test/module.defs
+++ b/test/module.defs
@@ -60,7 +60,12 @@ endif
ifeq (1,$(FEATURE.hwd))
TEST.GCC.D += USE_HWD
endif
- TEST.GCC.l += pthreadGC2 iconv ws2_32 regex
+ifeq (1,$(HAS.pthread))
+ TEST.GCC.l += pthread
+else
+ TEST.GCC.l += pthreadGC2
+endif
+ TEST.GCC.l += iconv ws2_32 regex
TEST.GCC.D += PTW32_STATIC_LIB
TEST.GCC.args.extra.exe++ += -static
endif # (1-mingw,$(BUILD.cross)-$(BUILD.system))