aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libiconv/ya.make
diff options
context:
space:
mode:
authorsvidyuk <svidyuk@yandex-team.com>2023-03-21 12:37:23 +0300
committersvidyuk <svidyuk@yandex-team.com>2023-03-21 12:37:23 +0300
commit8c039f0e189dfefc2f05e4f76c97ac5f804bb1f6 (patch)
tree4d124c9c4abad36bc898a383fb672d49d12aec79 /contrib/libs/libiconv/ya.make
parentf1303b6e66a6625241ad019ab59ef31611014c38 (diff)
downloadydb-8c039f0e189dfefc2f05e4f76c97ac5f804bb1f6.tar.gz
Don't use standalone GNU iconv in opensource
Diffstat (limited to 'contrib/libs/libiconv/ya.make')
-rw-r--r--contrib/libs/libiconv/ya.make20
1 files changed, 14 insertions, 6 deletions
diff --git a/contrib/libs/libiconv/ya.make b/contrib/libs/libiconv/ya.make
index 3b32d4e226..6d6b1141b9 100644
--- a/contrib/libs/libiconv/ya.make
+++ b/contrib/libs/libiconv/ya.make
@@ -8,12 +8,20 @@ WITHOUT_LICENSE_TEXTS()
NO_RUNTIME()
-OPENSOURCE_EXPORT_REPLACEMENT(
- CMAKE Iconv
- CMAKE_TARGET Iconv::Iconv
- CONAN libiconv/1.15
- CONAN_OPTIONS libiconv:shared=True
-)
+IF(OS_WINDOWS)
+ OPENSOURCE_EXPORT_REPLACEMENT(
+ CMAKE Iconv
+ CMAKE_TARGET Iconv::Iconv
+ CONAN libiconv/1.15
+ CONAN_OPTIONS libiconv:shared=True
+ )
+ELSE()
+ # Opensource code is compatible with libc provided iconv API on major linux distributions and macos.
+ # * We prefere to avoid vendoring LGPL libraries in our opensouce project
+ # * Major distributions do not provide GNU libiconv as separate package
+ # * Shared lib dependencies from conan overcomplicate final artefacts distribution
+ DISABLE(OPENSOURCE_EXPORT)
+ENDIF()
IF (NOT EXPORT_CMAKE)