[PATCH] Link with -ldl on GNU/kFreeBSD

Peter Colberg peter at colberg.org
Mon Jun 20 00:55:53 CEST 2016


GNU/kFreeBSD uses the FreeBSD kernel with the GNU C library.
---
 cgit.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cgit.mk b/cgit.mk
index 369f309..35e40dc 100644
--- a/cgit.mk
+++ b/cgit.mk
@@ -54,7 +54,7 @@ endif
 endif
 
 # Add -ldl to linker flags on non-BSD systems.
-ifeq ($(findstring BSD,$(uname_S)),)
+ifeq (,$(filter $(uname_S),DragonFly FreeBSD NetBSD OpenBSD))
 	CGIT_LIBS += -ldl
 endif
 
-- 
2.8.1



More information about the CGit mailing list