summaryrefslogtreecommitdiffstats
path: root/external/poky/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch
diff options
context:
space:
mode:
Diffstat (limited to 'external/poky/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch')
-rw-r--r--external/poky/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/external/poky/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch b/external/poky/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch
new file mode 100644
index 00000000..bd4444b8
--- /dev/null
+++ b/external/poky/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch
@@ -0,0 +1,36 @@
+From 7276275d9a08d5ae268fb263027bbc60bc0ab2e8 Mon Sep 17 00:00:00 2001
+From: Jeff Dike <jdike@x86_64.user-mode-linux.org>
+Date: Wed, 14 Jul 2010 14:35:52 -0400
+Subject: [PATCH] sysvinit - Remove sulogin dependency on /usr/lib*/libcrypt.a
+
+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
+
+---
+ src/Makefile | 9 ++-------
+ 1 file changed, 2 insertions(+), 7 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 1380d7f..628e77f 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -97,13 +97,8 @@ else
+ endif
+
+ # Additional libs for GNU libc.
+-ifneq ($(wildcard /usr/lib*/libcrypt.*),)
+- SULOGINLIBS += -lcrypt
+-endif
+-
+-# Additional libs for GNU libc / multiarch on Debian based systems.
+-ifneq ($(wildcard /usr/lib/*/libcrypt.*),)
+- SULOGINLIBS += -lcrypt
++ifneq ($(LCRYPT),)
++ SULOGINLIBS += $(LCRYPT)
+ endif
+
+ all: $(BIN) $(SBIN) $(USRBIN)