diff options
author | thegeorg <thegeorg@yandex-team.com> | 2025-01-16 19:48:44 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2025-01-16 20:18:14 +0300 |
commit | e75a66f14e07e4647175df6c2cf1ab719489997f (patch) | |
tree | 52f14a30daa589269dfe77cf4102a656bd368a2e /contrib/libs | |
parent | da29b59f8218e094464d3a9fdc19a35402b47ffa (diff) | |
download | ydb-e75a66f14e07e4647175df6c2cf1ab719489997f.tar.gz |
Fix external builds against musl-libc
commit_hash:a12d0eeb45e6ddff5c54b371a5ce42bf09f9aba4
Diffstat (limited to 'contrib/libs')
-rw-r--r-- | contrib/libs/libunwind/.yandex_meta/__init__.py | 5 | ||||
-rw-r--r-- | contrib/libs/libunwind/ya.make | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/contrib/libs/libunwind/.yandex_meta/__init__.py b/contrib/libs/libunwind/.yandex_meta/__init__.py index 0e5950112a..d6672a3770 100644 --- a/contrib/libs/libunwind/.yandex_meta/__init__.py +++ b/contrib/libs/libunwind/.yandex_meta/__init__.py @@ -9,6 +9,11 @@ def post_install(self): libunwind.NO_RUNTIME = True libunwind.NO_SANITIZE = True libunwind.NO_SANITIZE_COVERAGE = True + # There should be a clang option to disable pragma comment(lib) completely. + # Having these defines breaks musl build, as there is no such libs in musl + libunwind.CFLAGS.remove("-D_LIBUNWIND_LINK_DL_LIB") + libunwind.CFLAGS.remove("-D_LIBUNWIND_LINK_PTHREAD_LIB") + # original build uses -f options heavily, keep only necessary subset libunwind.CFLAGS += ["-fno-exceptions", "-fno-rtti", "-funwind-tables"] libunwind.after("CFLAGS", Switch({"SANITIZER_TYPE == memory": "CFLAGS(-fPIC)"})) diff --git a/contrib/libs/libunwind/ya.make b/contrib/libs/libunwind/ya.make index 8616820b80..aee3841a8b 100644 --- a/contrib/libs/libunwind/ya.make +++ b/contrib/libs/libunwind/ya.make @@ -36,8 +36,6 @@ NO_SANITIZE_COVERAGE() CFLAGS( -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D_LIBUNWIND_IS_NATIVE_ONLY - -D_LIBUNWIND_LINK_DL_LIB - -D_LIBUNWIND_LINK_PTHREAD_LIB -fno-exceptions -fno-rtti -funwind-tables |