]> git.pld-linux.org Git - packages/cpio.git/commitdiff
- patch for lookup for gethostname() is in libc fist and if no after this try
authormarcus <marcus@pld-linux.org>
Sun, 20 Aug 2000 23:40:54 +0000 (23:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
 find this function in libnsl. On system with libc 6 with NSS support this
 causes cut linking libraries list (no linking with libnsl on Linux).

Changed files:
    cpio-gethostname_is_in_libc_aka_no_libnsl.patch -> 1.1

cpio-gethostname_is_in_libc_aka_no_libnsl.patch [new file with mode: 0644]

diff --git a/cpio-gethostname_is_in_libc_aka_no_libnsl.patch b/cpio-gethostname_is_in_libc_aka_no_libnsl.patch
new file mode 100644 (file)
index 0000000..7069808
--- /dev/null
@@ -0,0 +1,12 @@
+diff -uNr cpio-2.4.2/configure.in cpio-2.4.2.new/configure.in
+--- cpio-2.4.2/configure.in    Wed Dec 20 17:28:29 1995
++++ cpio-2.4.2.new/configure.in        Mon Aug 21 01:20:15 2000
+@@ -62,6 +62,7 @@
+ AC_FUNC_VPRINTF
+ AC_FUNC_ALLOCA
+ AC_HEADER_DIRENT
+-AC_CHECK_LIB(nsl, gethostname, [LIBS="$LIBS -lnsl"])
++AC_CHECK_FUNC(gethostname, ,
++AC_CHECK_LIB(nsl, gethostname, [LIBS="$LIBS -lnsl"],) )
+ AC_CHECK_LIB(socket, setsockopt, [LIBS="$LIBS -lsocket"])
+ AC_OUTPUT(Makefile)
This page took 0.089537 seconds and 4 git commands to generate.