summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch')
-rw-r--r--meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch31
1 files changed, 21 insertions, 10 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch b/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch
index 7b342901e1..bd4444b81b 100644
--- a/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch
+++ b/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch
@@ -1,3 +1,8 @@
1From 7276275d9a08d5ae268fb263027bbc60bc0ab2e8 Mon Sep 17 00:00:00 2001
2From: Jeff Dike <jdike@x86_64.user-mode-linux.org>
3Date: Wed, 14 Jul 2010 14:35:52 -0400
4Subject: [PATCH] sysvinit - Remove sulogin dependency on /usr/lib*/libcrypt.a
5
1Upstream-Status: Inappropriate [configuration] 6Upstream-Status: Inappropriate [configuration]
2 7
3# The src Makefile was checking for libcrypt.a on the host, not in the 8# The src Makefile was checking for libcrypt.a on the host, not in the
@@ -5,21 +10,27 @@ Upstream-Status: Inappropriate [configuration]
5# and uses it if it's there. 10# and uses it if it's there.
6# - jdike@linux.intel.com 11# - jdike@linux.intel.com
7 12
8Index: sysvinit-2.88dsf/src/Makefile 13---
9=================================================================== 14 src/Makefile | 9 ++-------
10--- sysvinit-2.88dsf.orig/src/Makefile 15 1 file changed, 2 insertions(+), 7 deletions(-)
11+++ sysvinit-2.88dsf/src/Makefile 16
12@@ -85,9 +85,13 @@ else 17diff --git a/src/Makefile b/src/Makefile
18index 1380d7f..628e77f 100644
19--- a/src/Makefile
20+++ b/src/Makefile
21@@ -97,13 +97,8 @@ else
13 endif 22 endif
14 23
15 # Additional libs for GNU libc. 24 # Additional libs for GNU libc.
25-ifneq ($(wildcard /usr/lib*/libcrypt.*),)
26- SULOGINLIBS += -lcrypt
27-endif
28-
29-# Additional libs for GNU libc / multiarch on Debian based systems.
30-ifneq ($(wildcard /usr/lib/*/libcrypt.*),)
31- SULOGINLIBS += -lcrypt
16+ifneq ($(LCRYPT),) 32+ifneq ($(LCRYPT),)
17+ SULOGINLIBS += $(LCRYPT) 33+ SULOGINLIBS += $(LCRYPT)
18+else
19 ifneq ($(wildcard /usr/lib*/libcrypt.a),)
20 SULOGINLIBS += -lcrypt
21 endif 34 endif
22+endif
23 35
24 all: $(BIN) $(SBIN) $(USRBIN) 36 all: $(BIN) $(SBIN) $(USRBIN)
25