about summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2021-08-24 09:35:32 -0700
committerFangrui Song <maskray@google.com>2021-08-24 09:35:32 -0700
commit9926f6e2eeb374cf729d4bb3f092dd4b36a8f861 (patch)
treebcbe7fb8eaeeca1bd3f402ae01a7404d546dccec /configure.ac
parentf9cd7d5d194c652e9ec31634da3fc8ef1bf06780 (diff)
downloadglibc-9926f6e2eeb374cf729d4bb3f092dd4b36a8f861.tar.gz
glibc-9926f6e2eeb374cf729d4bb3f092dd4b36a8f861.tar.xz
glibc-9926f6e2eeb374cf729d4bb3f092dd4b36a8f861.zip
elf: Skip tst-auditlogmod-* if the linker doesn't support --depaudit [BZ #28151]
gold and ld.lld do not support --audit or --depaudit.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index af47cd51e6..e250f0e20b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1337,6 +1337,10 @@ LIBC_LINKER_FEATURE([-z start-stop-gc], [-Wl,-z,start-stop-gc],
 		    [libc_cv_z_start_stop_gc=yes], [libc_cv_z_start_stop_gc=no])
 LIBC_CONFIG_VAR([have-z-start-stop-gc], [$libc_cv_z_start_stop_gc])
 
+LIBC_LINKER_FEATURE([--depaudit], [-Wl,--depaudit,x],
+		    [libc_cv_depaudit=yes], [libc_cv_depaudit=no])
+LIBC_CONFIG_VAR([have-depaudit], [$libc_cv_depaudit])
+
 LIBC_LINKER_FEATURE([--no-dynamic-linker],
 		    [-Wl,--no-dynamic-linker],
 		    [libc_cv_no_dynamic_linker=yes],