mirror of
https://github.com/sheumann/hush.git
synced 2025-01-09 09:31:07 +00:00
fix build breakage with gcc 4.2.1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
56443cdbdd
commit
6dca172610
@ -105,7 +105,10 @@ export SYSROOT=$(CONFIG_SYSROOT)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Android has no separate crypt library
|
# Android has no separate crypt library
|
||||||
CRYPT_AVAILABLE := $(shell echo 'int main(void){return 0;}' | $(CC) $(CFLAGS) -lcrypt -o /dev/null -xc - >/dev/null 2>&1 && echo "y")
|
# gcc-4.2.1 fails if we try to feed C source on stdin:
|
||||||
|
# echo 'int main(void){return 0;}' | $(CC) $(CFLAGS) -lcrypt -o /dev/null -xc -
|
||||||
|
# fall back to using a temp file:
|
||||||
|
CRYPT_AVAILABLE := $(shell echo 'int main(void){return 0;}' >crypttest.c; $(CC) $(CFLAGS) -lcrypt -o /dev/null crypttest.c >/dev/null 2>&1 && echo "y"; rm crypttest.c)
|
||||||
ifeq ($(CRYPT_AVAILABLE),y)
|
ifeq ($(CRYPT_AVAILABLE),y)
|
||||||
LDLIBS += m crypt
|
LDLIBS += m crypt
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user