Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
musl libc needs libfts
Baptiste Daroussin committed 7 years ago
commit f37b3bd3a1e6c557df364ff9db287cfdd26728f4
parent f586d9e
4 files changed +17 -1
modified auto.def
@@ -140,6 +140,14 @@ cc-with { -includes { libutil.h }} {
	if {[cc-check-decls humanize_number]} {
	}
}
+

+
if {![cc-check-functions fts_open]} {
+
	cc-with { -libs { -lfts }} {
+
		if {[cc-check-functions fts_open]} {
+
		}
+
	}
+
}
+

if {[get-define HAVE_DECL_HUMANIZE_NUMBER] eq 1} {
	cc-with { -libs { -lutil }} {
		if {[cc-check-functions humanize_number]} {
modified libpkg/Makefile.autosetup
@@ -86,7 +86,9 @@ STATIC_LIBS= @REPOS_STATIC_LIBS@ \
@if HAVE_LIBUTIL
LOCAL_LDFLAGS+=	-lutil
@endif
-

+
@if HAVE_LIBFTS
+
LOCAL_LDFLAGS+=	-lfts
+
@endif
@if HAVE_LIBDL
LOCAL_LDFLAS+= -ldl
@endif
modified src/Makefile.autosetup
@@ -55,6 +55,9 @@ OTHER_LIBS+= -lm -lssl -lcrypto -pthread
@if HAVE_LIBUTIL
OTHER_LIBS+=	-lutil
@endif
+
@if HAVE_LIBFTS
+
OTHER_LIBS+=	-lfts
+
@endif
@if HAVE_LIBDL
OTHER_LIBS+=	-ldl
@endif
modified tests/Makefile.autosetup
@@ -95,6 +95,9 @@ OTHER_LIBS= -lssl -lcrypto -pthread
@if HAVE_LIBUTIL
OTHER_LIBS+=	-lutil
@endif
+
@if HAVE_LIBFTS
+
OTHER_LIBS+=	-lfts
+
@endif
@if HAVE_LIBDL
OTHER_LIBS+=	-ldl
@endif