ldconfig
A portable implementation of ldconfig.
Updating the dynamic linker cache (ld.so.cache) in a Linux rootfs,
particularly from a non-Linux host, requires booting the image in a VM.
This implementation of ldconfig bypasses that by operating directly
on the target filesystem.
Usage
// `rootfsDir` is a path to a root filesystem that contains Linux libraries
// and an `/etc/ld.so.conf` file
err := ldconfig.MakeCache(rootfsDir)
// On success, `/etc/ld.so.cache` is created within `rootfsDir`.
Legal
Copyright Onboard, Inc.
Licensed under Apache 2.0 license.