Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
glib needs libresolv for bind 8 compatible functions
Baptiste Daroussin committed 7 years ago
commit 4337ed97370a02ff47148dc199b240669bb74e21
parent 3467a2e
4 files changed +18 -1
modified auto.def
@@ -150,6 +150,14 @@ if {![cc-check-functions dlclose]} {
	}
}

+
if {![cc-check-functions res_query]} {
+
	cc-with { -libs { -lresolv }} {
+
		if {[cc-check-functions res_query]} {
+
			define-feature LIBRESOLV
+
		}
+
	}
+
}
+

cc-check-includes link.h machine/endian.h osreldate.h readpassphrase.h \
	sys/procctl.h sys/statfs.h sys/statvfs.h libutil.h

modified libpkg/Makefile.autosetup
@@ -92,6 +92,9 @@ LOCAL_LDFLAGS+= -lutil
@if HAVE_LIBDL
LOCAL_LDFLAS+= -ldl
@endif
+
@if HAVE_LIBRESOLV
+
LOCAL_LDFLAS+= -lresolv
+
@endif

@if libabidir == libmachista
LOCAL_CFLAGS+= -I$(top_srcdir)/external/libmachista
modified src/Makefile.autosetup
@@ -58,7 +58,10 @@ OTHER_LIBS= -lssl -lcrypto -pthread
OTHER_LIBS+=	-lutil
@endif
@if HAVE_LIBDL
-
OTHER_LIBS+= -ldl
+
OTHER_LIBS+=	-ldl
+
@endif
+
@if HAVE_LIBRESOLV
+
OTHER_LIBS+=	-lresolv
@endif

LOCAL_LDFLAGS=	-Wl,-Bstatic $(LIBS) -Wl,-Bdynamic $(OTHER_LIBS)
modified tests/Makefile.autosetup
@@ -98,6 +98,9 @@ OTHER_LIBS+= -lutil
@if HAVE_LIBDL
OTHER_LIBS+=	-ldl
@endif
+
@if HAVE_LIBRESOLV
+
OTHER_LIBS+=	-lresolv
+
@endif

LOCAL_LDFLAGS=	-Wl,-Bstatic $(LIBS) -Wl,-Bdynamic $(OTHER_LIBS) \
	@PKG_ATF_C_LDFLAGS@ @PKG_ATF_C_LIBS@