]> 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)
committerSteve Sakoman <steve@sakoman.com>
Fri, 10 Mar 2023 15:54:34 +0000 (05:54 -1000)
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>
(cherry picked from commit ccd28c418ab8390118d738fbe914395b5c2a1f75)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/binutils/binutils/0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch

index 4fe5520010b8fe667780035fb80866ae4649da05..9c825df5abe607fe727c0db82f270e67fc79db21 100644 (file)
@@ -65,7 +65,7 @@ index bfa0d54753a..0d61a3209ec 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))
        {