Skip to content

Commit 2caa2fe

Browse files
authored
Remove libbind from build system (php#12991)
Linking with -lbind is no longer relevant. The libbind was once part of the ISC project bind9. In 2013, maintenance was moved to NetBSD which integrated it into netresolv. [1]: https://www.isc.org/othersoftware/#libbind [2]: https://wiki.netbsd.org/individual-software-releases/netresolv/
1 parent 0b7cd14 commit 2caa2fe

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ case $host_alias in
378378
;;
379379
esac
380380

381-
dnl Check for inet_aton in -lc, -lbind and -lresolv.
382-
PHP_CHECK_FUNC(inet_aton, resolv, bind)
381+
dnl Check for inet_aton in -lc and -lresolv.
382+
PHP_CHECK_FUNC(inet_aton, resolv)
383383

384384
dnl Then headers.
385385
dnl ----------------------------------------------------------------------------

ext/standard/config.m4

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -352,17 +352,17 @@ dnl Detect library functions needed by php dns_xxx functions
352352
dnl ext/standard/php_dns.h will collect these in a single define
353353
dnl HAVE_FULL_DNS_FUNCS
354354
dnl
355-
PHP_CHECK_FUNC(res_nsearch, resolv, bind, socket)
356-
PHP_CHECK_FUNC(res_ndestroy, resolv, bind, socket)
357-
PHP_CHECK_FUNC(dns_search, resolv, bind, socket)
358-
PHP_CHECK_FUNC(dn_expand, resolv, bind, socket)
359-
PHP_CHECK_FUNC(dn_skipname, resolv, bind, socket)
355+
PHP_CHECK_FUNC(res_nsearch, resolv, socket)
356+
PHP_CHECK_FUNC(res_ndestroy, resolv, socket)
357+
PHP_CHECK_FUNC(dns_search, resolv, socket)
358+
PHP_CHECK_FUNC(dn_expand, resolv, socket)
359+
PHP_CHECK_FUNC(dn_skipname, resolv, socket)
360360

361361
dnl
362362
dnl These are old deprecated functions
363363
dnl
364364

365-
PHP_CHECK_FUNC(res_search, resolv, bind, socket)
365+
PHP_CHECK_FUNC(res_search, resolv, socket)
366366

367367
PHP_CHECK_FUNC(posix_spawn_file_actions_addchdir_np)
368368

0 commit comments

Comments
 (0)