aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libaio/ya.make
diff options
context:
space:
mode:
authorsnermolaev <snermolaev@yandex-team.com>2023-11-17 06:58:50 +0300
committersnermolaev <snermolaev@yandex-team.com>2023-11-17 07:26:08 +0300
commitef05dd5da576f90723bf75661c1efcabd9b6a3fd (patch)
tree7a40e460b01ba8012c883fad9827272d19edc575 /contrib/libs/libaio/ya.make
parent32b5c7f0dc79d7273495e0c99ca3d740c6bd3692 (diff)
downloadydb-ef05dd5da576f90723bf75661c1efcabd9b6a3fd.tar.gz
suport for use of local libaio, libiconv, libidn
Diffstat (limited to 'contrib/libs/libaio/ya.make')
-rw-r--r--contrib/libs/libaio/ya.make18
1 files changed, 13 insertions, 5 deletions
diff --git a/contrib/libs/libaio/ya.make b/contrib/libs/libaio/ya.make
index 1c3137f630..37000691cd 100644
--- a/contrib/libs/libaio/ya.make
+++ b/contrib/libs/libaio/ya.make
@@ -1,5 +1,7 @@
# Generated by devtools/yamaker from nixpkgs 22.05.
+DEFAULT(USE_AIO ${_USE_AIO})
+
LIBRARY()
WITHOUT_LICENSE_TEXTS()
@@ -17,10 +19,14 @@ IF (EXPORT_CMAKE)
CMAKE_TARGET
AIO::aio
)
-ELSEIF (USE_DYNAMIC_AIO)
+ELSEIF (USE_AIO == "dynamic")
PEERDIR(
contrib/libs/libaio/dynamic
)
+ELSEIF (USE_AIO == "local")
+ GLOBAL_CFLAGS(${USE_LOCAL_AIO_CFLAGS})
+ DEFAULT(USE_LOCAL_AIO_LDFLAGS -laio)
+ LDFLAGS(${USE_LOCAL_AIO_LDFLAGS})
ELSE()
PEERDIR(
contrib/libs/libaio/static
@@ -29,7 +35,9 @@ ENDIF()
END()
-RECURSE(
- dynamic
- static
-)
+IF (USE_AIO != "local")
+ RECURSE(
+ dynamic
+ static
+ )
+ENDIF()