Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] sysvinit: arm64 build fix
@ 2015-12-16 15:21 Joao Pinto
  2015-09-21 16:32 ` [Buildroot] [PATCH] " Baruch Siach
  2015-12-17 22:49 ` [Buildroot] [PATCH v2] " Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Joao Pinto @ 2015-12-16 15:21 UTC (permalink / raw)
  To: buildroot

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>
---
 package/sysvinit/0001-fix-libcrypt-test.patch | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/package/sysvinit/0001-fix-libcrypt-test.patch b/package/sysvinit/0001-fix-libcrypt-test.patch
index 207270d..3724110 100644
--- a/package/sysvinit/0001-fix-libcrypt-test.patch
+++ b/package/sysvinit/0001-fix-libcrypt-test.patch
@@ -1,17 +1,20 @@
 Make the libcrypt test somewhat cross-compilation compliant
 
 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 
 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)
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-17 22:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-16 15:21 [Buildroot] [PATCH v2] sysvinit: arm64 build fix Joao Pinto
2015-09-21 16:32 ` [Buildroot] [PATCH] " Baruch Siach
2015-09-21 16:38   ` Joao Pinto
2015-12-17 22:49 ` [Buildroot] [PATCH v2] " Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox