imagemagick: bump version to 7.0.3-7 (security)
[buildroot-gz.git] / package / sysvinit / 0001-fix-libcrypt-test.patch
blob6c22436d74a53408260c9db8b5332a05df9a62b8
1 Make the libcrypt test somewhat cross-compilation compliant
3 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5 Index: b/src/Makefile
6 ===================================================================
7 --- a/src/Makefile
8 +++ b/src/Makefile
9 @@ -78,8 +78,9 @@ else
10 endif
12 # Additional libs for GNU libc.
13 -ifneq ($(wildcard /usr/lib*/libcrypt.a),)
14 - SULOGINLIBS += -lcrypt
15 +HAS_LIBCRYPT=$(shell f=`mktemp` && echo 'int main(void) {}' | $(CC) -o $$f -xc - -lcrypt >/dev/null 2>&1 && echo yes; rm -f $$f)
16 +ifeq ($(HAS_LIBCRYPT),yes)
17 + SULOGINLIBS += -lcrypt
18 endif
20 all: $(BIN) $(SBIN) $(USRBIN)