diff options
author | Ross Burton <ross.burton@intel.com> | 2019-03-26 12:02:50 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-03-29 08:28:52 +0000 |
commit | 485b4a0e7a95a2ca0ff21637d073ee510468b9de (patch) | |
tree | 57ae8f013c731454fda3261410506eb4bff12f75 /meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch | |
parent | 6d591d2ce9c95db9cad2a8e91ba074fee9c4d553 (diff) | |
download | poky-485b4a0e7a95a2ca0ff21637d073ee510468b9de.tar.gz |
sysvinit: consolidate patches
(From OE-Core rev: b89a48da4bc25c769f8dbc15d5e8596258cda472)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch')
-rw-r--r-- | meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch b/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch new file mode 100644 index 0000000000..7b342901e1 --- /dev/null +++ b/meta/recipes-core/sysvinit/sysvinit/crypt-lib.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | # The src Makefile was checking for libcrypt.a on the host, not in the | ||
4 | # build environment. This patch checks for $LCRYPT in the environment | ||
5 | # and uses it if it's there. | ||
6 | # - jdike@linux.intel.com | ||
7 | |||
8 | Index: sysvinit-2.88dsf/src/Makefile | ||
9 | =================================================================== | ||
10 | --- sysvinit-2.88dsf.orig/src/Makefile | ||
11 | +++ sysvinit-2.88dsf/src/Makefile | ||
12 | @@ -85,9 +85,13 @@ else | ||
13 | endif | ||
14 | |||
15 | # Additional libs for GNU libc. | ||
16 | +ifneq ($(LCRYPT),) | ||
17 | + SULOGINLIBS += $(LCRYPT) | ||
18 | +else | ||
19 | ifneq ($(wildcard /usr/lib*/libcrypt.a),) | ||
20 | SULOGINLIBS += -lcrypt | ||
21 | endif | ||
22 | +endif | ||
23 | |||
24 | all: $(BIN) $(SBIN) $(USRBIN) | ||
25 | |||