]> git.pld-linux.org Git - packages/atftp.git/blobdiff - atftp-link.patch
- updated to 0.8.0; added patch to remove unnecessary -lnsl
[packages/atftp.git] / atftp-link.patch
diff --git a/atftp-link.patch b/atftp-link.patch
new file mode 100644 (file)
index 0000000..cef5a3e
--- /dev/null
@@ -0,0 +1,20 @@
+--- atftp-0.8.0/configure.ac.orig      2023-12-25 17:03:51.624746674 +0100
++++ atftp-0.8.0/configure.ac   2023-12-25 17:31:38.212384661 +0100
+@@ -149,7 +149,7 @@ if test x$libwrap = xtrue; then
+    dnl test here. We automatically link against nsl since libwrap is not
+    dnl already linked with it on all systems.
+    orig_LIBS="$LIBS"
+-   LIBS="-lnsl -lwrap"
++   LIBS="-lwrap"
+    AC_MSG_CHECKING([for hosts_ctl in -lwrap])
+    AC_TRY_LINK([
+         #include <tcpd.h>
+@@ -158,7 +158,7 @@ if test x$libwrap = xtrue; then
+         ],
+       hosts_ctl("", STRING_UNKNOWN, STRING_UNKNOWN, STRING_UNKNOWN);
+         ,
+-        LIBWRAP="-lnsl -lwrap"
++        LIBWRAP="-lwrap"
+         LIBS="$orig_LIBS"
+         AC_MSG_RESULT(yes)
+         AC_DEFINE([HAVE_WRAP], 1, "Support for libwrap")
This page took 0.049351 seconds and 4 git commands to generate.