summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-01-17 11:43:09 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-01-17 11:55:45 +0300
commit2cd1959f67bdd274a6581c0fe83ebf426f157f42 (patch)
tree6ebb617e1bcea05965da1adca5a0da016e3aae99 /tools
parentb50b4c623d57087268115511b2d255a2394cd3e7 (diff)
downloadbdwgc-2cd1959f67bdd274a6581c0fe83ebf426f157f42.tar.gz
Fix threadlibs tool to output '-lpthread' for DragonFly
* tools/threadlibs.c [GC_FREEBSD_THREADS && (__DragonFly__ || !__FREEBSD_version)] (main): Print "-lpthread" (as well as for __FREEBSD_version >= 500000).
Diffstat (limited to 'tools')
-rw-r--r--tools/threadlibs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/threadlibs.c b/tools/threadlibs.c
index 879eda7d..d3ef9256 100644
--- a/tools/threadlibs.c
+++ b/tools/threadlibs.c
@@ -42,10 +42,10 @@ int main(void)
# ifdef GC_USE_DLOPEN_WRAP
printf("-ldl ");
# endif
-# if (__FREEBSD_version >= 500000)
- printf("-lpthread\n");
-# else
+# if (__FREEBSD_version < 500000)
printf("-pthread\n");
+# else /* __FREEBSD__ || __DragonFly__ */
+ printf("-lpthread\n");
# endif
# endif
# if defined(GC_NETBSD_THREADS)