summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/musl
AgeCommit message (Collapse)Author
2020-11-11musl: Update to latest masterKhem Raj
fix erroneous pthread_cond_wait mutex waiter count logic due to typo https://git.musl-libc.org/cgit/musl/log/?qt=range&q=27b2fc9d6db956359727a66c262f1e69995660aa..d91a6cf6e369a79587c5665fce9635e5634ca201 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-10-31musl: Update to latestKhem Raj
Fixes pthread_condvars add support for SIGEV_THREAD_ID times * 27b2fc9d fix missing-wake regression in pthread_cond_wait * 7c71792e add support for SIGEV_THREAD_ID timers * f70375df fix sem_close unmapping of still-referenced semaphore * 613ccabe refactor setxid return path to use __syscall_ret * ccba2345 ldso: notify the debugger when we're doing a dlopen * 4209a7b1 fix setgroups behavior in multithreaded process * 6ce91ef0 avoid __synccall for setrlimit on kernels with prlimit syscall * 3437e478 fix reintroduction of errno clobbering by atfork handlers * 2d0bbe6c fix pthread_cond_wait paired with with priority-inheritance mutex Details are here [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=0b87551bdfb74ac411caa335d8ad0b89a7f139c6..27b2fc9d6db956359727a66c262f1e69995660aa Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-10-31musl: Add .file directive in crt assembly filesKhem Raj
This helps linker to noot emit absolute paths into .debug_line sections of liked binaries and libraries and therefore make them reproducible Reported-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-10-30musl: Update to latest masterKhem Raj
Changes in this revision bump are * 0b87551b (upstream/master) lift sigaction abort locking to fix posix_spawn child deadlock * 99d5098a update crypt_blowfish to support $2b$ prefix * 957c2763 remove unused weak definition of __tl_sync in membarrier.c * 55767360 move aio implementation details to a proper internal header * 37337660 remove long-unused struct __timer from pthread_impl.h * 85e16aec drop use of pthread_once in timer_create * 6ae2568b remove unused SIGTIMER handler in timer_create * 47baa030 remove incorrect fflush from assert failure handler * da845d52 fix getgrouplist when nscd reports an empty list * b7bc9665 fix posix_spawn interaction with fork and abort by taking lock * 25ea9f71 fix unintended observability of SIGABRT disposition reset via sigaction * bd153422 implement _Fork and refactor fork using it * e1e98d86 rename fork source file * 50716702 ldso: use pthread_t rather than kernel tid to track ctor visitor * 1efc8eb2 fix stale lock when allocation of ctor queue fails during dlopen * 69a1b390 drop use of pthread_once in mutexattr kernel support tests * b115bee4 fix missing synchronization of fork with abort * 3cd3de61 move __abort_lock to its own file and drop pointless weak_alias trick * 34904d83 fix fork of processes with active async io contexts Details are here [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=a5aff1972c9e3981566414b09a28e331ccd2be5d..0b87551bdfb74ac411caa335d8ad0b89a7f139c6 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-10-08musl: Update to masterKhem Raj
Brings following changes, supports linux 5.8 syscalls [1] * a5aff197 avoid set*id/setrlimit misbehavior and hang in vforked/cloned child * 55fb9a17 use new SYS_faccessat2 syscall to implement faccessat with flags * f035c7b1 netinet/if_ether.h: add ETH_P_MRP from linux v5.8 * 6b1741aa elf.h: add .note.gnu.property related definitions * 9b7ed970 bits/syscall.h: add __NR_faccessat2 from linux v5.8 * 616a8bf6 netinet/tcp.h: update to linux v5.7 * a6c302be sys/mman.h: add MREMAP_DONTUNMAP from linux v5.7 * 8adf42f7 sys/fanotify.h: update to linux v5.7 * 94ab68c2 aarch64: add new HWCAP2_ macros from linux v5.6 * 0296baff aarch64: add HWCAP2_ macros from linux v5.3 * 43b640c2 sched.h: add CLONE_NEWTIME from linux v5.6 * 3da18e69 sys/random.h: add GRND_INSECURE from linux v5.6 * 8f4aa78a sys/prctl.h: add PR_{SET,GET}_IO_FLUSHER from linux v5.6 * 1ab341e8 netinet/udp.h: add TCP_ENCAP_ESPINTCP from linux v5.6 * c6321616 netinet/tcp.h: update for linux v5.6 * 8fca0ea4 netinet/in.h: add IPPROTO_ macros from linux v5.6 * d9900903 add pidfd_getfd and openat2 syscall numbers from linux v5.6 * d4f29814 netinet/tcp.h: update tcp_info for linux v5.5 [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=ffac0c229986725c0d0f3c806bafa7e3ca409f3b..a5aff1972c9e3981566414b09a28e331ccd2be5d Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-11libucontext: Recognise riscv32 architectureKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-11musl: Upgrade to latest masterKhem Raj
Accomodates rv32 port which is out of tree at the moment details are [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=73cc775bee53300c7cf759f37580220b18ac13d3..ffac0c229986725c0d0f3c806bafa7e3ca409f3b Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-08-06musl: Upgrade to latest release 1.2.1Alejandro Hernandez
Signed-off-by: Alejandro Hernandez Samaniego <alhe@linux.microsoft.com> Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-07-19musl: Update to latest tipKhem Raj
License-Update: Added copyright for AArch64 memcpy and memset code [1] Details changelog is here [2] [1] https://git.musl-libc.org/cgit/musl/commit/?id=fdf8b2ad9c5ae6adf3a91c0043eb898badee46d1 [2] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=fca7428c096066482d8c3f52450810288e27515c..0a005f499cf39822166dd4db3d2d31f0639f1b1b Signed-off-by: Khem Raj <raj.khem@gmail.com> s Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-28musl: Update to tip of masterKhem Raj
Detailed changelog [1] Refresh patches [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=1b4e84c56df0f8ca30f6bc05962a860f869e71df..fca7428c096066482d8c3f52450810288e27515c Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-22musl: Update to tip of masterKhem Raj
Detailed changes [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=040c1d16b468c50c04fc94edff521f1637708328..1b4e84c56df0f8ca30f6bc05962a860f869e71df Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-03musl: Remove spurious unused patchKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-04-24libucontext: Bring in mips/mips64 supportKhem Raj
License-Update: Updated copyright years [1] Latest master 0.10.x+ has added support for mips/mips64, which should help compile ruby on musl for these architectures Switch SRC_URI to github upstream URI Check for common arches before checking others in map_kernel_arch Drop already upstreamed patches [1] https://github.com/kaniini/libucontext/commit/d31eaabbaf5f45656c10e4bccd3fe6653a7d3ec1 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-21musl: Add support for multilibKhem Raj
ldso is always stored in /lib regardless of multilib add ld-musl-${MUSL_LDSO_ARCH}.path to aid ldso finding default library loading paths, it helps when using multilib, where system libraries are moved to lib32 or lib64 paths under / or /usr [YOCTO #11971] Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-19libucontext: Fix multilib buildKhem Raj
libdir is hardcoded to /lib which is not going to work in multilib scene, patch makefile to add a variable to override the libdir from env Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-13musl: removes aliases for glibc provided librariesJan Kaisrlik
Based on the recommendation in musl mailing list[1] All symlinks have been removed from musl recipe. Move stub libraries into -dev package having them treated as normal .a which they are not, is not correct and packages shoves them into static archives, which are not installed on target usually unless asked for this should help in linking with -lm, -lpthread etc. on target [1]: https://www.openwall.com/lists/musl/2020/03/10/11 Signed-off-by: Jan Kaisrlik <ja.kaisrlik@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-22musl: Update to final 1.2.0 releaseKhem Raj
Detailed log [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=a662220df547e5c2446518e74440a7d834f9ebe6..040c1d16b468c50c04fc94edff521f1637708328 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-15musl: Update to latest tipKhem Raj
Detailed changelog is here [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=e6093b5a870a38ebfb3e54382acd48c698bde15d..a662220df547e5c2446518e74440a7d834f9ebe6 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-05musl: Update to latest on masterKhem Raj
Details on commit delta [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=83350eb17b9cb355e3f08b0340c4f1e8c437fac9..e6093b5a870a38ebfb3e54382acd48c698bde15d Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-02musl: Update to latestKhem Raj
Changelog [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=91e662d1d941215eb024787db5e910dbfb5b169f..83350eb17b9cb355e3f08b0340c4f1e8c437fac9 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-27Musl: Update to latest masterKhem Raj
Detailed changelog [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=70d80609558153a996833392999c69cdb74e1119..91e662d1d941215eb024787db5e910dbfb5b169f Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-27libucontext: Add recipeKhem Raj
Help musl based systems provide ucontext APIs, these APIs are used in some common applications e.g. chromium browser Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-06musl: Ensure that B is clean before configure task is runKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-03musl: Build outside of source treeKhem Raj
musl does not use cmake/autotools etc. but plane old makefile basded build system, which means it does not get B defined to be outside S therefore define B explicitly to be outside S Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-03musl: Upgrade beyond 1.24Khem Raj
License-Change: Added ARM to copyright files [1] [2] [3] Detailed changes are here [4] [1] https://git.musl-libc.org/cgit/musl/commit/COPYRIGHT?id=db3cc9a319c788cf5241ea68d3fa86b43f35733e [2] https://git.musl-libc.org/cgit/musl/commit/?id=daa29e894c74d61296fe19d9b7c4be2f04037639 [3] https://git.musl-libc.org/cgit/musl/commit/?id=d3f7df235904439d48db041c7796e5b44be5b8e6 [4] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=2c2477da9a553c0b9b2fa18073a5dcdbe6d395af..70d80609558153a996833392999c69cdb74e1119 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-07musl: Update to latestKhem Raj
Drop upstream'ed patch Fix libgcc build with musl Detailed ChangeLog [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=1f0e9f9cc2e3fa354f94e18b3b362de5f1ec7272..2c2477da9a553c0b9b2fa18073a5dcdbe6d395af Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-02musl: Fix __riscv_mc* containers to match glibcKhem Raj
Fixes packages like gdb compile Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-09-27musl: Fix riscv64 CAS functionsKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-16musl: Update to latest masterKhem Raj
* Added copy_file_range posix_spawn_file_actions_add[f]chdir API * optreset is added to getopt * pthread fixes * Conditionally add legacy long definition of wchar_t Details [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=6ad514e4e278f0c3b18eb2db1d45638c9af1c07f..1f0e9f9cc2e3fa354f94e18b3b362de5f1ec7272 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-09-06musl: Update to latest masterKhem Raj
sys/user.h related API fixed on ppc/ppc64 Detailed log [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=29e8737f81ccc9fbadcf61a75318aa3d0516aafa..6ad514e4e278f0c3b18eb2db1d45638c9af1c07f Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-08-16musl: Update to latest tipKhem Raj
Fixes build regressions on risc-v Detailed changelog is here [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=d0b547dfb5f7678cab6bc39dd736ed6454357ca4..29e8737f81ccc9fbadcf61a75318aa3d0516aafa Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-08-14musl: Delete GLIBC_LDSO before creating symlink with lnrKhem Raj
Fixes rebuild failures after say do_compile fails | ./tools/install.sh -D -r /mnt/a/yoe/build/tmp/work/riscv64-yoe-linux-musl/musl/1.1.23+gitAUTOINC+d0b547dfb5-r0/image/usr/lib/libc.so /mnt/a/yoe/build/tmp/work/riscv64-yoe-linux-musl/musl/1.1.23+gitAUTOINC+d0b547dfb5-r0/image/lib/ld-musl-riscv64.so.1 || true | Traceback (most recent call last): | File "/mnt/a/yoe/sources/openembedded-core/scripts/lnr", line 24, in <module> | os.symlink(target, linkname) | FileExistsError: [Errno 17] File exists: 'image/usr/lib/libc.so' -> '/mnt/a/yoe/build/tmp/work/riscv64-yoe-linux-musl/musl/1.1.23+gitAUTOINC+d0b547dfb5-r0/imageNone' Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-08-08musl: Update to master tipKhem Raj
Fix for RISC-V build regression 64bit time syscall plumbing Changes are here [1] [1] https://git.musl-libc.org/cgit/musl/log/?qt=range&q=0ce49d0a301b4142741b32773492af90f66ed3ca..d0b547dfb5f7678cab6bc39dd736ed6454357ca4 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-23musl-obstack: Add recipeKhem Raj
obstacks from GNUlib is used in some OE-Core packages e.g. elfutils and other packages outside OE-Core, this recipe helps provide this functionality standalone on musl systems, and helps in getting full versions of dependent packages Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-22musl: Upgrade to 1.1.23+Khem Raj
License-Update: Added contributor list and copyright years https://git.musl-libc.org/cgit/musl/commit/COPYRIGHT?id=7a6c8a0df1b685d788fd4d3763681bb3018806d7 https://git.musl-libc.org/cgit/musl/commit/COPYRIGHT?id=d6dcd4185bddff34724d6d539f834e9daf7dcf3d - include release 1.1.23 - Add riscv support - Add syscall numbers upto 5.1 kernel Detailed log https://git.musl-libc.org/cgit/musl/log/?qt=range&q=ac304227bb3ea1787d581f17d76a5f5f3abff51f..0ce49d0a301b4142741b32773492af90f66ed3ca Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-27musl: Upgrade to master tipKhem Raj
Changes https://git.musl-libc.org/cgit/musl/log/?qt=range&q=65c8be380431eebe4d70d130bd38563f8df9a7d7..ac304227bb3ea1787d581f17d76a5f5f3abff51f Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-27Revert "musl: Add TEMP_FAILURE_RETRY from glibc"Khem Raj
This reverts commit 0c68c621d3b8690e3a346170006f75b032511a8a. It should be upstreamed first Secondly, musl and glibc are under different licenses and importing code from one to other could taint it. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-16musl: Add TEMP_FAILURE_RETRY from glibcAdrian Bunk
Patch it into musl instead of patching all users (currently elfutils and next ofono). Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-04-16musl: Upgrade to master past 1.1.22Khem Raj
Changes are here https://git.musl-libc.org/cgit/musl/log/?qt=range&q=43e7efb46555f13a556d92944ac05c19b8929b60..65c8be380431eebe4d70d130bd38563f8df9a7d7 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-03-05musl: Update for few bugfixesKhem Raj
We have seen/reported few dlopen related fixes which has been fixed upstream, therefore upgrade all set of changes https://git.musl-libc.org/cgit/musl/log/?qt=range&q=6516282d2adfad2c7e66d854cde3357120c75dbd..43e7efb46555f13a556d92944ac05c19b8929b60 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-03-01musl: Fix out of bounds data access in dlopenKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-26musl: Update to latest beyond 1.21Khem Raj
https://git.musl-libc.org/cgit/musl/log/?qt=range&q=1691b23955590d1eb66a11158fdd91c86337e886..6516282d2adfad2c7e66d854cde3357120c75dbd Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-01-21musl: Upgrade to 1.1.21 releaseKhem Raj
Delta of changes from previous Revision https://git.musl-libc.org/cgit/musl/log/?qt=range&q=de7dc1318f493184b20f7661bc12b1829b957b67..1691b23955590d1eb66a11158fdd91c86337e886 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-01-20musl,glibc,newlib: Drop redundant STAGINGCCKhem Raj
We do not have initial phase of bootstrapping toolchains anymore Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-01-11musl: Update to master tipKhem Raj
Detaild log https://git.musl-libc.org/cgit/musl/log/?qt=range&q=21a172dd36cae7a08492fd3a7500d7bf0daee13e..de7dc1318f493184b20f7661bc12b1829b957b67 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-12-27musl: Update to latest masterKhem Raj
* sync APIs from kernel v4.18 * Misc bug fixes Full logs https://git.musl-libc.org/cgit/musl/log/?qt=range&q=39ef612aa193cc6e954ac5a01574300ccd4b7ef9..21a172dd36cae7a08492fd3a7500d7bf0daee13e Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-12-26musl: Move away from gcc-initial dependencyKhem Raj
gcc-initial step is no more needed Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-12-26libssp: Remove dependency on gcc-initialKhem Raj
Its not needed anymore and it can depend on gcc-cross instead Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-12-26recipes: Drop virtual/libc-for-gccRichard Purdie
We no longer have special "libc" for gcc so we can rely on plain virtual/libc and reduce the complexity in the dependencies. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-12-15musl: Create default library search path based on configurationSerhey Popovych
In absence of /etc/ld-musl-$(ARCH).path file musl uses hardcoded default search path "/lib:/usr/local/lib:/usr/lib". This works for cases when system libraries installed in one of these pathes. However if lib64 or libx32 used as system library directories and no usr merge functionality enabled for distro musl dynamic loader cannot find libraries and finally execute binaries. Found while working on support for musl on powerpc64 builds where lib64 variant is used regardless of multilib being on or off. Fix by creating default search path based on configuration time values for syslibdir and libdir. Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>