diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-15 00:05:26 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-15 00:05:26 +0000 |
commit | 5e5627ab165aac8c2b7fa02f792d2db98f7c7120 (patch) | |
tree | 246ef6cbe6d83256000420828f68211e7260b379 | |
parent | 0bded87a00111706d2c1d2ddc43b67ad3b91a1e3 (diff) | |
parent | 5e5d1a013eae302ae40ad17960b90bfad7561cdf (diff) | |
download | elfutils-5e5627ab165aac8c2b7fa02f792d2db98f7c7120.tar.gz |
Snap for 11097608 from 5e5d1a013eae302ae40ad17960b90bfad7561cdf to 24Q1-release
Change-Id: I62facf7012b8c44a6a3498f71cfa02ba777ac339
-rw-r--r-- | Android.bp | 16 | ||||
-rw-r--r-- | config.h | 4 | ||||
-rwxr-xr-x | post_update.sh | 2 |
3 files changed, 15 insertions, 7 deletions
@@ -39,8 +39,20 @@ license { ], } +// Properties to apply to all static libraries that use elfutils. +// Soong doesn't have propagation for static library dependencies, +// and this have to be included explicitly by elfutils users. +cc_defaults { + name: "elfutils_transitive_defaults", + static_libs: [ + "libz", + "libzstd", + ], +} + cc_defaults { name: "elfutils_defaults", + defaults: ["elfutils_transitive_defaults"], cflags: [ "-DHAVE_CONFIG_H", "-D_GNU_SOURCE", @@ -75,8 +87,6 @@ cc_library { srcs: ["libelf/*.c",], - static_libs: ["libz"], - export_include_dirs: ["libelf"], target: { @@ -139,7 +149,6 @@ cc_library_host_static { musl: { static_libs: [ "libfts", - "libz", ], }, }, @@ -161,7 +170,6 @@ cc_library_host_static { // Do not enabled compression support "libdwfl/bzip2.c", "libdwfl/lzma.c", - "libdwfl/zstd.c", // Those headers are incompatible with clang due to nested function // definitions. "libdwfl/dwfl_segment_report_module.c", @@ -189,10 +189,10 @@ #define USE_ZLIB 1 /* Support ZSTD (zst) decompression via -lzstd. */ -/* #undef USE_ZSTD */ +#define USE_ZSTD 1 /* zstd compression support */ -/* #undef USE_ZSTD_COMPRESS */ +#define USE_ZSTD_COMPRESS 1 /* Version number of package */ #define VERSION "0.189" diff --git a/post_update.sh b/post_update.sh index 7072c8f4..9079e374 100755 --- a/post_update.sh +++ b/post_update.sh @@ -11,7 +11,7 @@ if [ "$1" != "" ]; then cd $1 fi -autoreconf -i && ./configure --enable-maintainer-mode --disable-debuginfod --disable-libdebuginfod --without-lzma --without-bzlib --without-zstd +autoreconf -i && ./configure --enable-maintainer-mode --disable-debuginfod --disable-libdebuginfod --without-lzma --without-bzlib # if called from the external_updater, do not apply any patches as it will do # that for us |