mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-15 22:31:59 +01:00
Merge pull request #958 from marineam/oem
baselayout: Add OEM lib directories to default search path
This commit is contained in:
commit
9eaa52fead
@ -130,6 +130,14 @@ src_install() {
|
||||
done
|
||||
echo "LDPATH='${ldpaths#:}'" >> "${D}"/etc/env.d/00basic || die
|
||||
|
||||
# Add oem/lib64 to search path towards end of the system's list.
|
||||
# This simplifies the configuration of OEMs with dynamic libs.
|
||||
ldpaths=
|
||||
for libdir in $(get_all_libdirs) ; do
|
||||
ldpaths+=":/usr/share/oem/${libdir}"
|
||||
done
|
||||
echo "LDPATH='${ldpaths#:}'" >> "${D}"/etc/env.d/80oem || die
|
||||
|
||||
if ! use symlink-usr ; then
|
||||
# modprobe uses /lib instead of /usr/lib
|
||||
mv "${D}"/usr/lib/modprobe.d "${D}"/lib/modprobe.d || die
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user