Package: sysvinit / 2.88dsf-59.9

40_multiarch_libcrypt.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Purpose: Use multiarch library search path to find and link with libcrypt
Author:  Roger Leigh
Fixes:   #629677
Status:  Not sent upstream.


--- a/src/Makefile
+++ b/src/Makefile
@@ -78,10 +78,15 @@ else
   SULOGINLIBS	=
 endif
 
+LIBDIR=/usr/lib
 # Additional libs for GNU libc.
 ifneq ($(wildcard /usr/lib*/libcrypt.a),)
+  SULOGINLIBS   += -lcrypt
+else
+ifneq ($(wildcard $(LIBDIR)*/libcrypt.a),)
   SULOGINLIBS	+= -lcrypt
 endif
+endif
 
 all:		$(BIN) $(SBIN) $(USRBIN)