Provide libaio.a for those projects (such as stress-ng) checking for
POSIX aio support by looking for this library at configure time.
A release note is provided for Cygwin 3.6.0.

Signed-off-by: Mark Geisert <m...@maxrnd.com>
Fixes: N/A (new code)

---
 winsup/cygwin/Makefile.am   | 6 +++++-
 winsup/cygwin/release/3.6.0 | 3 +++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/Makefile.am b/winsup/cygwin/Makefile.am
index 376c79fc3..50029749f 100644
--- a/winsup/cygwin/Makefile.am
+++ b/winsup/cygwin/Makefile.am
@@ -550,7 +550,8 @@ SUBLIBS = \
        libresolv.a \
        librt.a \
        libacl.a \
-       libssp.a
+       libssp.a \
+       libaio.a
 
 noinst_LIBRARIES = \
        libdll.a \
@@ -666,6 +667,9 @@ libacl.a: $(LIB_NAME) sec/posixacl.o
 libssp.a: $(LIB_NAME) $(wildcard $(newlib_build)/libc/ssp/*.o)
        $(AM_V_GEN)$(speclib) $^ $(@F)
 
+libaio.a: $(LIB_NAME) aio.o
+       $(AM_V_GEN)$(speclib) $^ $(@F)
+
 #
 # all
 #
diff --git a/winsup/cygwin/release/3.6.0 b/winsup/cygwin/release/3.6.0
index ddb303b15..468a2ab24 100644
--- a/winsup/cygwin/release/3.6.0
+++ b/winsup/cygwin/release/3.6.0
@@ -13,6 +13,9 @@ What's new:
   Windows attributes FILE_ATTRIBUTE_PINNED and FILE_ATTRIBUTE_UNPINNED.
   Add matching 'p' and 'u' mode bits in chattr(1) and lsattr(1).
 
+- New libaio.a provided for projects checking for POSIX aio support
+  by looking for this library at configure time.
+
 
 What changed:
 -------------
-- 
2.45.1

Reply via email to