aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2024-03-27 22:01:04 +0000
committerElliott Hughes <enh@google.com>2024-03-27 22:01:04 +0000
commit0cc41144a3042c2124bc84bef33d537dfd4c8938 (patch)
treec16191c049121b5a73535f82acf4b1a2ad1c0616
parent3f7f14683d06b13843864c6896fbef52f6287813 (diff)
downloadzstd-0cc41144a3042c2124bc84bef33d537dfd4c8938.tar.gz
Disable ZSTD_TRACE.
The kernel build disables this, we don't need it, and it caused some unwanted relocations in the linker: Relocation section '.rela.dyn' at offset 0x8e8 contains 2 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 00000000001691d8 0000000100000401 R_AARCH64_GLOB_DAT 0000000000000000 ZSTD_trace_decompress_begin + 0 00000000001691e0 0000000200000401 R_AARCH64_GLOB_DAT 0000000000000000 ZSTD_trace_decompress_end + 0 Change-Id: I931aa4b97acfc645409fa8d2cbbad669a601c1f2
-rw-r--r--Android.bp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 0ec604cc..976529a3 100644
--- a/Android.bp
+++ b/Android.bp
@@ -89,7 +89,10 @@ cc_library {
cflags: ["-DZSTD_DISABLE_ASM"],
},
},
- cflags: ["-Wall", "-Werror"],
+ cflags: [
+ "-DZSTD_HAVE_WEAK_SYMBOLS=0",
+ "-DZSTD_TRACE=0",
+ ],
local_include_dirs: ["lib/common"],
export_include_dirs: ["lib"],
}