]> Nishi Git Mirror - gwion.git/commitdiff
NetBSD / OpenBSD Support (#243)
authorNishiOwO <89888985+NishiOwO@users.noreply.github.com>
Sun, 17 Apr 2022 14:58:40 +0000 (23:58 +0900)
committerGitHub <noreply@github.com>
Sun, 17 Apr 2022 14:58:40 +0000 (16:58 +0200)
Thanks.
This first PR is very clean :tada:

Makefile

index 4d192ae4ba691e0c7502d36f7c6823bed54420e1..0bfeee52cf3833ae6fb03aba5dd7c292eb8236e4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,12 @@ CFLAGS += -DDEBUG_STACK
 endif
 
 ifneq (${BUILD_ON_WINDOWS}, 1)
-LDFLAGS += -ldl -lpthread
+LDFLAGS += -lpthread
+ifeq ($(uname -s), NetBSD)
+else ifeq ($(uname -s), OpenBSD)
+else
+LDFLAGS += -ldl
+endif
 endif
 
 ifeq (${USE_HELGRIND}, 1)