]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
binutils: Fix nativesdk ld.so search
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Feb 2023 17:55:03 +0000 (17:55 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Feb 2023 11:03:45 +0000 (11:03 +0000)
Currently binutils in buildtools is searching for /etc/etc/ld.so.conf
which makes no sense. ld_sysconfdir already contains /etc so we need to
drop the /etc from the fixed string.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch

index 8e5e2be81dd02b1b85653708a18cc49c1981438e..54967b9362fce7393d1fc7decb326ed241d23fb8 100644 (file)
@@ -65,7 +65,7 @@ index eff6693e052..95787012b89 100644
        info.path = NULL;
        info.len = info.alloc = 0;
 -      tmppath = concat (ld_sysroot, prefix, "/etc/ld.so.conf",
-+      tmppath = concat (ld_sysconfdir, "/etc/ld.so.conf",
++      tmppath = concat (ld_sysconfdir, "/ld.so.conf",
                        (const char *) NULL);
        if (!ldelf_parse_ld_so_conf (&info, tmppath))
        {