diff options
author | snermolaev <snermolaev@yandex-team.com> | 2023-11-17 06:58:50 +0300 |
---|---|---|
committer | snermolaev <snermolaev@yandex-team.com> | 2023-11-17 07:26:08 +0300 |
commit | ef05dd5da576f90723bf75661c1efcabd9b6a3fd (patch) | |
tree | 7a40e460b01ba8012c883fad9827272d19edc575 /contrib/libs/libaio/ya.make | |
parent | 32b5c7f0dc79d7273495e0c99ca3d740c6bd3692 (diff) | |
download | ydb-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.make | 18 |
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() |