File: 40_multiarch_libcrypt.patch

package info (click to toggle)
sysvinit 2.88dsf-59
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,300 kB
  • ctags: 1,736
  • sloc: ansic: 7,096; sh: 3,883; perl: 371; makefile: 315
file content (24 lines) | stat: -rw-r--r-- 478 bytes parent folder | download | duplicates (2)
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)