forked from pool/vsftpd
d7c40746c4
Fix build with libcap, which moved the lib from /lib64 to /usr/lib64 (see Staging:C) OBS-URL: https://build.opensuse.org/request/show/424074 OBS-URL: https://build.opensuse.org/package/show/network/vsftpd?expand=0&rev=104
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
Index: vsf_findlibs.sh
|
|
===================================================================
|
|
--- vsf_findlibs.sh.orig
|
|
+++ vsf_findlibs.sh
|
|
@@ -14,6 +14,7 @@ fi
|
|
# crypt library.
|
|
if find_func pam_start sysdeputil.o; then
|
|
locate_library /lib/libpam.so.0 && echo "/lib/libpam.so.0";
|
|
+ locate_library /lib64/libpam.so.0 && echo "/lib64/libpam.so.0";
|
|
locate_library /usr/lib/libpam.so && echo "-lpam";
|
|
locate_library /usr/lib64/libpam.so && echo "-lpam";
|
|
locate_library /lib/x86_64-linux-gnu/libpam.so.0 && echo "-lpam";
|
|
@@ -23,6 +24,7 @@ if find_func pam_start sysdeputil.o; the
|
|
locate_library /usr/lib/libpam.a && echo "-lpam";
|
|
else
|
|
locate_library /lib/libcrypt.so && echo "-lcrypt";
|
|
+ locate_library /lib64/libcrypt.so && echo "-lcrypt";
|
|
locate_library /usr/lib/libcrypt.so && echo "-lcrypt";
|
|
locate_library /usr/lib64/libcrypt.so && echo "-lcrypt";
|
|
locate_library /lib/x86_64-linux-gnu/libcrypt.so && echo "-lcrypt";
|
|
@@ -54,6 +56,7 @@ elif locate_library /lib/libcap.so.2; th
|
|
echo "/lib/libcap.so.2";
|
|
else
|
|
locate_library /usr/lib/libcap.so && echo "-lcap";
|
|
+ locate_library /usr/lib64/libcap.so && echo "-lcap";
|
|
locate_library /lib/libcap.so && echo "-lcap";
|
|
locate_library /lib64/libcap.so && echo "-lcap";
|
|
fi
|