aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorRomain Geissler <romain.geissler@gmail.com>2023-03-26 20:00:16 +0000
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-03-27 16:58:08 -0300
commit4b4b62191e510230baad7031a5075df6a81e5fa5 (patch)
tree1707b8a57f4f55416a6226242840fdb0854eb542 /elf
parentcce422a63262dad5e6d7108d36092fc0757b5594 (diff)
downloadglibc-4b4b62191e510230baad7031a5075df6a81e5fa5.zip
glibc-4b4b62191e510230baad7031a5075df6a81e5fa5.tar.gz
glibc-4b4b62191e510230baad7031a5075df6a81e5fa5.tar.bz2
Fix tst-glibc-hwcaps-prepend-cache with custom configure prefix value
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf')
-rw-r--r--elf/tst-glibc-hwcaps-prepend-cache.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/elf/tst-glibc-hwcaps-prepend-cache.c b/elf/tst-glibc-hwcaps-prepend-cache.c
index 2a44842..fe074b2 100644
--- a/elf/tst-glibc-hwcaps-prepend-cache.c
+++ b/elf/tst-glibc-hwcaps-prepend-cache.c
@@ -44,9 +44,13 @@ do_test (void)
if (dlopen (SONAME, RTLD_NOW) != NULL)
FAIL_EXIT1 (SONAME " is already on the search path");
- /* Install the default implementation of libmarkermod1.so. */
- xmkdirp ("/etc", 0777);
- support_write_file_string ("/etc/ld.so.conf", "/glibc-test/lib\n");
+ {
+ /* Install the default implementation of libmarkermod1.so. */
+ char *conf_path = xasprintf ("%s/ld.so.conf", support_sysconfdir_prefix);
+ xmkdirp (support_sysconfdir_prefix, 0777);
+ support_write_file_string (conf_path, "/glibc-test/lib\n");
+ free (conf_path);
+ }
xmkdirp ("/glibc-test/lib/glibc-hwcaps/prepend2", 0777);
xmkdirp ("/glibc-test/lib/glibc-hwcaps/prepend3", 0777);
{