diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-06-15 22:43:51 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-06-22 12:09:52 -0300 |
commit | eef7913c2f5512a954e658a5908a47dbc0ec8c2e (patch) | |
tree | efd27199fcfd2dbe5b2ee13d2fc53fac130b5d51 /sysvipc/Makefile | |
parent | 4b6551902e5c701e5f3156928d88aadeb6487dc1 (diff) | |
download | glibc-eef7913c2f5512a954e658a5908a47dbc0ec8c2e.zip glibc-eef7913c2f5512a954e658a5908a47dbc0ec8c2e.tar.gz glibc-eef7913c2f5512a954e658a5908a47dbc0ec8c2e.tar.bz2 |
linux: Only use 64-bit syscall if required for semtimedop
For !__ASSUME_TIME64_SYSCALLS there is no need to issue a 64-bit syscall
if the provided timeout fits in a 32-bit one. The 64-bit usage should
be rare since the timeout is a relative one.
Checked on i686-linux-gnu on a 4.15 kernel and on a 5.11 kernel
(with and without --enable-kernel=5.1) and on x86_64-linux-gnu.
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'sysvipc/Makefile')
-rw-r--r-- | sysvipc/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sysvipc/Makefile b/sysvipc/Makefile index 8691180..d2acb6a 100644 --- a/sysvipc/Makefile +++ b/sysvipc/Makefile @@ -38,3 +38,12 @@ include ../Rules CFLAGS-msgrcv.c += -fexceptions -fasynchronous-unwind-tables CFLAGS-msgsnd.c += -fexceptions -fasynchronous-unwind-tables + +ifeq (yes,$(build-shared)) +librt = $(common-objpfx)rt/librt.so +else +librt = $(common-objpfx)rt/librt.a +endif + +$(objpfx)test-sysvsem: $(librt) +$(objpfx)test-sysvsem-time64: $(librt) |