Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix linking on FreeBSD
Emmanuel Vadot committed 5 years ago
commit 89b761e7a23e58f56adf9f23c76b7f6681bb3da0
parent c41f3f2
2 files changed +12 -0
modified auto.def
@@ -79,6 +79,15 @@ cc-with { -libs { -llzma }} {
		user-error "Unable to find liblzma"
	}
}
+
if {[string match *-freebsd* [get-define host]]} {
+
	cc-with { -libs { -lmd }} {
+
		if {![cc-check-functions SHA256_Data]} {
+
			user-error "Unable to find libmd"
+
		} else {
+
			define-feature libmd
+
		}
+
	}
+
}

cc-with { -libs { -larchive }} {
	cc-check-functions archive_write_add_filter_zstd
modified src/Makefile.autosetup
@@ -64,6 +64,9 @@ OTHER_LIBS+= -ldl
@if HAVE_LIBRESOLV
OTHER_LIBS+=	-lresolv
@endif
+
@if HAVE_LIBMD
+
OTHER_LIBS+=	-lmd
+
@endif

@if libmachista
LOCAL_LDFLAGS=	$(LIBPKGFLAT) $(LIBS) $(OTHER_LIBS) -lresolv