blob: 4806470d3aded70b4fad31d62fef39828ffca33b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
diff --git a/vsf_findlibs.sh b/vsf_findlibs.sh
index f5d485d..baf167b 100755
--- a/vsf_findlibs.sh
+++ b/vsf_findlibs.sh
@@ -6,8 +6,6 @@ find_func() { egrep $1 $2 >/dev/null; }
if find_func hosts_access tcpwrap.o; then
echo "-lwrap";
- locate_library /lib/libnsl.so && echo "-lnsl";
- locate_library /lib64/libnsl.so && echo "-lnsl";
fi
# Look for PAM (done weirdly due to distribution bugs (e.g. Debian) or the
@@ -36,7 +34,6 @@ locate_library /lib/libdl.so && echo "-ldl";
locate_library /lib/libsocket.so && echo "-lsocket";
# Look for libnsl. Solaris needs this.
-locate_library /lib/libnsl.so && echo "-lnsl";
# Look for libresolv. Solaris needs this.
locate_library /lib/libresolv.so && echo "-lresolv";
@@ -69,7 +66,7 @@ locate_library /usr/shlib/librt.so && echo "-lrt";
locate_library /usr/lib/libsendfile.so && echo "-lsendfile";
# OpenSSL
-if find_func SSL_library_init ssl.o; then
+if find_func SSL_CTX_new ssl.o; then
echo "-lssl -lcrypto";
fi
|