diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-04-20 18:24:09 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-04-20 18:24:09 +0200 |
commit | 6dca17261065eabe6102a7e7facf9ebb717315e5 (patch) | |
tree | 44a135892cf051fdb372bbf71eb3732638174706 /Makefile.flags | |
parent | 56443cdbdd23f7691df833d45f8c3468e07115bb (diff) | |
download | busybox-w32-6dca17261065eabe6102a7e7facf9ebb717315e5.tar.gz busybox-w32-6dca17261065eabe6102a7e7facf9ebb717315e5.tar.bz2 busybox-w32-6dca17261065eabe6102a7e7facf9ebb717315e5.zip |
fix build breakage with gcc 4.2.1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'Makefile.flags')
-rw-r--r-- | Makefile.flags | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags index f745c2fdf..c43c8dca8 100644 --- a/Makefile.flags +++ b/Makefile.flags | |||
@@ -105,7 +105,10 @@ export SYSROOT=$(CONFIG_SYSROOT) | |||
105 | endif | 105 | endif |
106 | 106 | ||
107 | # Android has no separate crypt library | 107 | # Android has no separate crypt library |
108 | CRYPT_AVAILABLE := $(shell echo 'int main(void){return 0;}' | $(CC) $(CFLAGS) -lcrypt -o /dev/null -xc - >/dev/null 2>&1 && echo "y") | 108 | # gcc-4.2.1 fails if we try to feed C source on stdin: |
109 | # echo 'int main(void){return 0;}' | $(CC) $(CFLAGS) -lcrypt -o /dev/null -xc - | ||
110 | # fall back to using a temp file: | ||
111 | 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) | ||
109 | ifeq ($(CRYPT_AVAILABLE),y) | 112 | ifeq ($(CRYPT_AVAILABLE),y) |
110 | LDLIBS += m crypt | 113 | LDLIBS += m crypt |
111 | else | 114 | else |