[Buildroot] [git commit master 1/1] sysvinit: make sure to link against libcrypt

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Aug 25 15:30:38 UTC 2010

commit: http://git.buildroot.net/buildroot/commit/?id=d3de556d28b0e92541ade939a58706bc94ed8ab4
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

sysvinit Makefile checks if /usr/lib/libcrypt.a exists to determine
whether it should link against libcrypt or not. This test fails on
distributions such as Fedora, in which /usr/lib/libcrypt.a does not
exist (it is in /usr/lib64), but where libcrypt is available on the
target. As libcrypt is available in both uClibc and gclibc, we just
force sysvinit to link against libcrypt.

Fixes bug #2401.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
 package/sysvinit/sysvinit.mk |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/package/sysvinit/sysvinit.mk b/package/sysvinit/sysvinit.mk
index 0b827e6..09aaf74 100644
--- a/package/sysvinit/sysvinit.mk
+++ b/package/sysvinit/sysvinit.mk
@@ -21,7 +21,9 @@ $(SYSVINIT_DIR)/.unpacked: $(DL_DIR)/$(SYSVINIT_SOURCE)
 	touch $@
+	# Force sysvinit to link against libcrypt as it otherwise
+	# use an incorrect test to see if it's available
 	for x in halt init shutdown; do \

More information about the buildroot mailing list