aboutsummaryrefslogtreecommitdiff
path: root/Makefile.flags
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.flags')
-rw-r--r--Makefile.flags4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 2687781f1..f202a5f54 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -159,8 +159,8 @@ LDLIBS += m
159# gcc-4.2.1 fails if we try to feed C source on stdin: 159# gcc-4.2.1 fails if we try to feed C source on stdin:
160# echo 'int main(void){return 0;}' | $(CC) $(CFLAGS) -lcrypt -o /dev/null -xc - 160# echo 'int main(void){return 0;}' | $(CC) $(CFLAGS) -lcrypt -o /dev/null -xc -
161# fall back to using a temp file: 161# fall back to using a temp file:
162CRYPT_AVAILABLE := $(shell echo 'int main(void){return 0;}' >bb_libtest.c; $(CC) $(CFLAGS) -lcrypt -o /dev/null bb_libtest.c >/dev/null 2>&1 && echo "y"; rm bb_libtest.c) 162CRYPT_AVAILABLE := $(shell echo 'int main(void){return 0;}' >bb_libtest.c; $(CC) $(CFLAGS) $(CFLAGS_busybox) -lcrypt -o /dev/null bb_libtest.c >/dev/null 2>&1 && echo "y"; rm bb_libtest.c)
163RT_AVAILABLE := $(shell echo 'int main(void){return 0;}' >bb_libtest.c; $(CC) $(CFLAGS) -lrt -o /dev/null bb_libtest.c >/dev/null 2>&1 && echo "y"; rm bb_libtest.c) 163RT_AVAILABLE := $(shell echo 'int main(void){return 0;}' >bb_libtest.c; $(CC) $(CFLAGS) $(CFLAGS_busybox) -lrt -o /dev/null bb_libtest.c >/dev/null 2>&1 && echo "y"; rm bb_libtest.c)
164ifeq ($(CRYPT_AVAILABLE),y) 164ifeq ($(CRYPT_AVAILABLE),y)
165LDLIBS += crypt 165LDLIBS += crypt
166endif 166endif