diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-10-24 16:26:55 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-10-24 16:26:55 +0200 |
commit | be5a505d771a77c640acc35ceaa470c80e62f954 (patch) | |
tree | c15e916dcf9ea7809794e36440c066f5b2f79598 /Makefile.flags | |
parent | 7427406580e78666fad3634b4bfaf1922d4bb457 (diff) | |
download | busybox-w32-be5a505d771a77c640acc35ceaa470c80e62f954.tar.gz busybox-w32-be5a505d771a77c640acc35ceaa470c80e62f954.tar.bz2 busybox-w32-be5a505d771a77c640acc35ceaa470c80e62f954.zip |
Remove syscall wrappers around clock_gettime, closes 12091
12091 "Direct use of __NR_clock_gettime is not time64-safe".
function old new delta
runsv_main 1698 1712 +14
startservice 378 383 +5
get_mono 31 25 -6
date_main 932 926 -6
gettimeofday_ns 17 - -17
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 2/2 up/down: 19/-29) Total: -10 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'Makefile.flags')
-rw-r--r-- | Makefile.flags | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.flags b/Makefile.flags index 6f6142cc5..bea464753 100644 --- a/Makefile.flags +++ b/Makefile.flags | |||
@@ -129,10 +129,12 @@ endif | |||
129 | # fall back to using a temp file: | 129 | # fall back to using a temp file: |
130 | 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) | 130 | 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) |
131 | ifeq ($(CRYPT_AVAILABLE),y) | 131 | ifeq ($(CRYPT_AVAILABLE),y) |
132 | LDLIBS += m crypt | 132 | LDLIBS += m rt crypt |
133 | else | 133 | else |
134 | LDLIBS += m | 134 | LDLIBS += m rt |
135 | endif | 135 | endif |
136 | # libm may be needed for dc, awk, ntpd | ||
137 | # librt may be needed for clock_gettime() | ||
136 | 138 | ||
137 | # libpam may use libpthread, libdl and/or libaudit. | 139 | # libpam may use libpthread, libdl and/or libaudit. |
138 | # On some platforms that requires an explicit -lpthread, -ldl, -laudit. | 140 | # On some platforms that requires an explicit -lpthread, -ldl, -laudit. |