mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
rust: glibc: add Rustc library search path
This commit is contained in:
parent
50e90ce908
commit
d8888f7497
@ -469,18 +469,23 @@ unset ZONEINFO</userinput></screen>
|
|||||||
</literal>
|
</literal>
|
||||||
EOF</userinput></screen>
|
EOF</userinput></screen>
|
||||||
|
|
||||||
<para>If desired, the dynamic loader can also search a directory and
|
<para>The dynamic loader can also search a directory and
|
||||||
include the contents of files found there. Generally the files in
|
include the contents of files found there. Generally the files in
|
||||||
this include directory are one line specifying the desired library path.
|
this include directory are one line specifying the desired library path.
|
||||||
To add this capability run the following commands:</para>
|
Add this capability:</para>
|
||||||
|
|
||||||
<screen role="nodump"><userinput>cat >> /etc/ld.so.conf << "EOF"
|
<screen><userinput>cat >> /etc/ld.so.conf << "EOF"
|
||||||
<literal># Add an include directory
|
<literal># Add an include directory
|
||||||
include /etc/ld.so.conf.d/*.conf
|
include /etc/ld.so.conf.d/*.conf
|
||||||
</literal>
|
</literal>
|
||||||
EOF
|
EOF
|
||||||
mkdir -pv /etc/ld.so.conf.d</userinput></screen>
|
mkdir -pv /etc/ld.so.conf.d</userinput></screen>
|
||||||
|
|
||||||
|
<para>Tell the dynamic loader how to find the libraries for Rustc:</para>
|
||||||
|
|
||||||
|
<screen><userinput>echo /opt/rustc/lib > /etc/ld.so.conf.d/rust.conf
|
||||||
|
ldconfig</userinput></screen>
|
||||||
|
|
||||||
</sect3>
|
</sect3>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user