diff options
author | Jeff Dike <jdike@x86_64.user-mode-linux.org> | 2010-07-14 14:35:52 -0400 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-15 13:44:56 +0100 |
commit | 2295705918707992705b5df4e4c17cb4cf5a3df5 (patch) | |
tree | 89125544b51a530fd42429cb96ca1799df80de67 /meta/packages/sysvinit/sysvinit-2.88dsf | |
parent | fd1d661b391dfad1edaac937a17c1165f635031a (diff) | |
download | openembedded-core-2295705918707992705b5df4e4c17cb4cf5a3df5.tar.gz openembedded-core-2295705918707992705b5df4e4c17cb4cf5a3df5.tar.bz2 openembedded-core-2295705918707992705b5df4e4c17cb4cf5a3df5.tar.xz openembedded-core-2295705918707992705b5df4e4c17cb4cf5a3df5.zip |
sysvinit - Remove sulogin dependency on /usr/lib*/libcrypt.a
The sulogin compile checked for /usr/lib*/libcrypt.a to decide whether
to add -lcrypt to the final compile. However, the recipe puts LCRYPT
in the environment, so crypt-lib.patch makes the Makefile check for
this before looking at the host /usr/lib.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Diffstat (limited to 'meta/packages/sysvinit/sysvinit-2.88dsf')
-rw-r--r-- | meta/packages/sysvinit/sysvinit-2.88dsf/crypt-lib.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/packages/sysvinit/sysvinit-2.88dsf/crypt-lib.patch b/meta/packages/sysvinit/sysvinit-2.88dsf/crypt-lib.patch new file mode 100644 index 000000000..b9511f088 --- /dev/null +++ b/meta/packages/sysvinit/sysvinit-2.88dsf/crypt-lib.patch @@ -0,0 +1,23 @@ +# 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) + |