From ca4b396ebebf8869e199268edbb5808bb5488c50 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 2 Jun 2017 10:58:53 -0300 Subject: [PATCH] posix: Add missing build flags for p{write,read}v2 This patch adds the missing compiler flags for correct pthread cancellation on some architectures for the p{read,write}v2 implementation (52bd9381692fd23). Checked on x86_64-linux-gnu and powerpc64le-linux-gnu. * misc/Makefile (CFLAGS-preadv2.c): New rule. (CFLAGS-preadv64v2.c): Likewise. (CFLAGS-pwritev2.c): Likewise. (CFLAGS-pwritev64v2.c): Likewise. --- ChangeLog | 7 +++++++ misc/Makefile | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6b32e3192c..2b0a09b166 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-06-02 Adhemerval Zanella + + * misc/Makefile (CFLAGS-preadv2.c): New rule. + (CFLAGS-preadv64v2.c): Likewise. + (CFLAGS-pwritev2.c): Likewise. + (CFLAGS-pwritev64v2.c): Likewise. + 2017-06-02 Florian Weimer Test res_init with several configuration files. diff --git a/misc/Makefile b/misc/Makefile index c393fa7cf2..46072e62d9 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -100,6 +100,10 @@ CFLAGS-preadv.c = -fexceptions -fasynchronous-unwind-tables CFLAGS-preadv64.c = -fexceptions -fasynchronous-unwind-tables CFLAGS-pwritev.c = -fexceptions -fasynchronous-unwind-tables CFLAGS-pwritev64.c = -fexceptions -fasynchronous-unwind-tables +CFLAGS-preadv2.c = -fexceptions -fasynchronous-unwind-tables +CFLAGS-preadv64v2.c = -fexceptions -fasynchronous-unwind-tables +CFLAGS-pwritev2.c = -fexceptions -fasynchronous-unwind-tables +CFLAGS-pwritev64v2.c = -fexceptions -fasynchronous-unwind-tables CFLAGS-usleep.c = -fexceptions CFLAGS-syslog.c = -fexceptions CFLAGS-error.c = -fexceptions