mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-07 17:19:07 +08:00
ci: turn off unaligned access in libelf explicitly
This commit is contained in:
committed by
Andrii Nakryiko
parent
b69f8ee93e
commit
f3cc144922
@@ -36,6 +36,11 @@ find -name Makefile.am | xargs sed -i 's/,--no-undefined//'
|
|||||||
# https://clang.llvm.org/docs/AddressSanitizer.html#usage
|
# https://clang.llvm.org/docs/AddressSanitizer.html#usage
|
||||||
sed -i 's/^\(ZDEFS_LDFLAGS=\).*/\1/' configure.ac
|
sed -i 's/^\(ZDEFS_LDFLAGS=\).*/\1/' configure.ac
|
||||||
|
|
||||||
|
if [[ "$SANITIZER" == undefined ]]; then
|
||||||
|
# That's basicaly what --enable-sanitize-undefined does to turn off unaligned access
|
||||||
|
# elfutils heavily relies on on i386/x86_64 but without changing compiler flags along the way
|
||||||
|
sed -i 's/\(check_undefined_val\)=[0-9]/\1=1/' configure.ac
|
||||||
|
fi
|
||||||
|
|
||||||
autoreconf -i -f
|
autoreconf -i -f
|
||||||
if ! ./configure --enable-maintainer-mode --disable-debuginfod --disable-libdebuginfod \
|
if ! ./configure --enable-maintainer-mode --disable-debuginfod --disable-libdebuginfod \
|
||||||
|
|||||||
Reference in New Issue
Block a user