aboutsummaryrefslogtreecommitdiff
path: root/package/sysvinit
diff options
context:
space:
mode:
authorGravatar Joao Pinto <Joao.Pinto@synopsys.com>2015-12-16 15:21:38 +0000
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-12-17 23:48:02 +0100
commitc93805207e24df082495f4d050bc2f29f3d19dd6 (patch)
tree4e92ff23ddc1e542f39d7d1acf80b89d242d93b1 /package/sysvinit
parent1edb4c51dee78d7d26700c037f29558e73d27ee0 (diff)
downloadbuildroot-c93805207e24df082495f4d050bc2f29f3d19dd6.tar.gz
buildroot-c93805207e24df082495f4d050bc2f29f3d19dd6.tar.bz2
sysvinit: arm64 build fix
sysvinit was not able to be built for arm64 architectures. The package patch was changed according to the suggestion of Thomas Petazzoni. Signed-off-by: Joao Pinto <jpinto@synopsys.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/sysvinit')
-rw-r--r--package/sysvinit/0001-fix-libcrypt-test.patch9
1 files changed, 6 insertions, 3 deletions
diff --git a/package/sysvinit/0001-fix-libcrypt-test.patch b/package/sysvinit/0001-fix-libcrypt-test.patch
index 207270d9c9..6c22436d74 100644
--- a/package/sysvinit/0001-fix-libcrypt-test.patch
+++ b/package/sysvinit/0001-fix-libcrypt-test.patch
@@ -6,12 +6,15 @@ Index: b/src/Makefile
===================================================================
--- a/src/Makefile
+++ b/src/Makefile
-@@ -78,7 +78,7 @@
+@@ -78,8 +78,9 @@ else
endif
# Additional libs for GNU libc.
-ifneq ($(wildcard /usr/lib*/libcrypt.a),)
-+ifneq ($(wildcard $(SYSROOT)/usr/lib*/libcrypt.a),)
- SULOGINLIBS += -lcrypt
+- SULOGINLIBS += -lcrypt
++HAS_LIBCRYPT=$(shell f=`mktemp` && echo 'int main(void) {}' | $(CC) -o $$f -xc - -lcrypt >/dev/null 2>&1 && echo yes; rm -f $$f)
++ifeq ($(HAS_LIBCRYPT),yes)
++ SULOGINLIBS += -lcrypt
endif
+ all: $(BIN) $(SBIN) $(USRBIN)