summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch
blob: 7b342901e1bbd67ce8c992fe9adda69aaf33babb (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
Upstream-Status: Inappropriate [configuration]

# The src Makefile was checking for libcrypt.a on the host, not in the
# build environment.  This patch checks for $LCRYPT in the environment
# and uses it if it's there.
# - jdike@linux.intel.com

Index: sysvinit-2.88dsf/src/Makefile
===================================================================
--- sysvinit-2.88dsf.orig/src/Makefile
+++ sysvinit-2.88dsf/src/Makefile
@@ -85,9 +85,13 @@ else
 endif
 
 # Additional libs for GNU libc.
+ifneq ($(LCRYPT),)
+  SULOGINLIBS	+= $(LCRYPT)
+else
 ifneq ($(wildcard /usr/lib*/libcrypt.a),)
   SULOGINLIBS	+= -lcrypt
 endif
+endif
 
 all:		$(BIN) $(SBIN) $(USRBIN)