The branch stable/13 has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=a2a905f4d02b9592a8126c73f2eb4d3949265659

commit a2a905f4d02b9592a8126c73f2eb4d3949265659
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2021-11-19 03:45:31 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2021-12-01 01:07:19 +0000

    ldconfig: use libexec/rtld-elf/rtld_paths.h
    
    (cherry picked from commit af9115870670f508c11b3d173bcff5116d8ef320)
---
 sbin/ldconfig/Makefile   | 1 +
 sbin/ldconfig/ldconfig.c | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/sbin/ldconfig/Makefile b/sbin/ldconfig/Makefile
index 2ead668578f6..070c2c3d6901 100644
--- a/sbin/ldconfig/Makefile
+++ b/sbin/ldconfig/Makefile
@@ -3,6 +3,7 @@
 PACKAGE=runtime
 PROG=  ldconfig
 SRCS=  elfhints.c ldconfig.c
+CFLAGS+= -I${SRCTOP}/libexec/rtld-elf
 MAN=   ldconfig.8
 
 .include <bsd.prog.mk>
diff --git a/sbin/ldconfig/ldconfig.c b/sbin/ldconfig/ldconfig.c
index 777895936834..288c22813121 100644
--- a/sbin/ldconfig/ldconfig.c
+++ b/sbin/ldconfig/ldconfig.c
@@ -48,6 +48,7 @@
 #include <unistd.h>
 
 #include "ldconfig.h"
+#include "rtld_paths.h"
 
 #define        _PATH_LD32_HINTS        "/var/run/ld32.so.hints"
 #define        _PATH_ELF32_HINTS       "/var/run/ld-elf32.so.hints"
@@ -84,7 +85,7 @@ main(int argc, char **argv)
        }
 
        if (is_soft)
-               hints_file = _PATH_ELFSOFT_HINTS;
+               hints_file = _PATH_SOFT_ELF_HINTS;
        else if (is_32)
                hints_file = _PATH_ELF32_HINTS;
        else

Reply via email to