Skip to content

Commit

Permalink
Use BSD-compatible readelf flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
yugr committed Dec 22, 2024
1 parent b483f77 commit cfb24b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ASAN_OPTIONS=verify_asan_link_order=0:$ASAN_OPTIONS

CC=${CC:-gcc}

if readelf --dyn-syms -W bin/libsortcheck.so | grep -q __asan_init; then
if readelf -sDW bin/libsortcheck.so | grep -q __asan_init; then
if $CC --version | grep -q clang; then
ASAN_RT_LIB=libclang_rt.asan-x86_64.so
else # clang
Expand Down

0 comments on commit cfb24b0

Please sign in to comment.