diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-01-17 11:43:09 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-01-17 11:55:45 +0300 |
commit | 2cd1959f67bdd274a6581c0fe83ebf426f157f42 (patch) | |
tree | 6ebb617e1bcea05965da1adca5a0da016e3aae99 /tools | |
parent | b50b4c623d57087268115511b2d255a2394cd3e7 (diff) | |
download | bdwgc-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.c | 6 |
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) |