diff options
author | Ron Yorston <rmy@pobox.com> | 2021-05-14 08:17:12 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-05-14 08:17:12 +0100 |
commit | a3f5a1b7f4275f713acf22f534f95c0da8392e53 (patch) | |
tree | 49b65422a3e9c33f508da9ccf3ae79d324bd9e96 /Makefile.flags | |
parent | 375cda9a88024135d630ca8990d9aff4ea414e89 (diff) | |
parent | 7de0ab21d939a5a304157f75918d0318a95261a3 (diff) | |
download | busybox-w32-a3f5a1b7f4275f713acf22f534f95c0da8392e53.tar.gz busybox-w32-a3f5a1b7f4275f713acf22f534f95c0da8392e53.tar.bz2 busybox-w32-a3f5a1b7f4275f713acf22f534f95c0da8392e53.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'Makefile.flags')
-rw-r--r-- | Makefile.flags | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile.flags b/Makefile.flags index dfdd957f3..0950ddb0d 100644 --- a/Makefile.flags +++ b/Makefile.flags | |||
@@ -153,18 +153,21 @@ LDLIBS += ws2_32 mingwex -l:libssp.a | |||
153 | endif | 153 | endif |
154 | 154 | ||
155 | ifneq ($(CONFIG_PLATFORM_MINGW32),y) | 155 | ifneq ($(CONFIG_PLATFORM_MINGW32),y) |
156 | # libm may be needed for dc, awk, ntpd | ||
157 | LDLIBS += m | ||
156 | # Android has no separate crypt library | 158 | # Android has no separate crypt library |
157 | # 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: |
158 | # 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 - |
159 | # fall back to using a temp file: | 161 | # fall back to using a temp file: |
160 | 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) | 162 | CRYPT_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) |
163 | RT_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) | ||
161 | ifeq ($(CRYPT_AVAILABLE),y) | 164 | ifeq ($(CRYPT_AVAILABLE),y) |
162 | LDLIBS += m rt crypt | 165 | LDLIBS += crypt |
163 | else | ||
164 | LDLIBS += m rt | ||
165 | endif | 166 | endif |
166 | # libm may be needed for dc, awk, ntpd | ||
167 | # librt may be needed for clock_gettime() | 167 | # librt may be needed for clock_gettime() |
168 | ifeq ($(RT_AVAILABLE),y) | ||
169 | LDLIBS += rt | ||
170 | endif | ||
168 | endif | 171 | endif |
169 | 172 | ||
170 | # libpam may use libpthread, libdl and/or libaudit. | 173 | # libpam may use libpthread, libdl and/or libaudit. |