various: no need to link against libsocket
[unleashed-userland.git] / components / sysutils / screen / patches / libsocket.patch
blob6785e8c1cec37d8f3cc93070668656d472d5c7b6
1 diff -ur screen-4.5.0.orig/configure screen-4.5.0/configure
2 --- screen-4.5.0.orig/configure Tue Jan 17 14:29:21 2017
3 +++ screen-4.5.0/configure Sun Jul 15 13:06:06 2018
4 @@ -4150,7 +4150,7 @@
5 _ACEOF
6 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7 $EGREP "yes" >/dev/null 2>&1; then :
8 - LIBS="$LIBS -lsocket -linet";seqptx=1
9 + LIBS="$LIBS -linet";seqptx=1
11 rm -f conftest*
13 @@ -4220,7 +4220,7 @@
14 _ACEOF
15 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16 $EGREP "yes" >/dev/null 2>&1; then :
17 - LIBS="$LIBS -lsocket -lnsl -lkstat"
18 + LIBS="$LIBS -lnsl -lkstat"
20 rm -f conftest*
22 @@ -6022,7 +6022,7 @@
23 _ACEOF
24 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25 $EGREP "yes" >/dev/null 2>&1; then :
26 - LIBS="$LIBS -lsocket -lcrypt_i"
27 + LIBS="$LIBS -lcrypt_i"
29 rm -f conftest*
31 @@ -6717,7 +6717,7 @@
32 CFLAGS="-O"
35 -test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
36 +test -n "$seqptx" && LIBS="-ltermcap -lc -linet -lnsl -lsec -lseq"
38 if test "$cross_compiling" = yes; then :
39 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40 diff -ur screen-4.5.0.orig/configure.ac screen-4.5.0/configure.ac
41 --- screen-4.5.0.orig/configure.ac Tue Jan 17 14:28:29 2017
42 +++ screen-4.5.0/configure.ac Sun Jul 15 13:05:51 2018
43 @@ -200,7 +200,7 @@
44 [#ifdef _SEQUENT_
45 yes;
46 #endif
47 -], LIBS="$LIBS -lsocket -linet";seqptx=1)
48 +], LIBS="$LIBS -linet";seqptx=1)
50 oldlibs="$LIBS"
51 LIBS="$LIBS -lelf"
52 @@ -217,7 +217,7 @@
53 [#if defined(SVR4) && defined(sun)
54 yes
55 #endif
56 -], LIBS="$LIBS -lsocket -lnsl -lkstat")
57 +], LIBS="$LIBS -lnsl -lkstat")
59 dnl
60 dnl **** typedefs ****
61 @@ -1135,7 +1135,7 @@
62 [#ifdef M_UNIX
63 yes;
64 #endif
65 -], LIBS="$LIBS -lsocket -lcrypt_i")
66 +], LIBS="$LIBS -lcrypt_i")
68 dnl
69 dnl **** misc things ****
70 @@ -1298,7 +1298,7 @@
73 dnl Ptx bug workaround -- insert -lc after -ltermcap
74 -test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
75 +test -n "$seqptx" && LIBS="-ltermcap -lc -linet -lnsl -lsec -lseq"
77 AC_TRY_RUN(main(){exit(0);},,AC_MSG_ERROR(Can't run the compiler - internal error. Sorry.))