Changeset d8888f7


Ignore:
Timestamp:
10/09/2022 12:23:00 PM (19 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/rust-wip-20221008
Children:
17c3817
Parents:
50e90ce
git-author:
Xi Ruoyao <xry111@…> (10/09/2022 12:22:33 PM)
git-committer:
Xi Ruoyao <xry111@…> (10/09/2022 12:23:00 PM)
Message:

rust: glibc: add Rustc library search path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/glibc.xml

    r50e90ce rd8888f7  
    470470EOF</userinput></screen>
    471471
    472   <para>If desired, the dynamic loader can also search a directory and
     472  <para>The dynamic loader can also search a directory and
    473473  include the contents of files found there.  Generally the files in
    474474  this include directory are one line specifying the desired library path.
    475   To add this capability run the following commands:</para>
    476 
    477 <screen role="nodump"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
     475  Add this capability:</para>
     476
     477<screen><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
    478478<literal># Add an include directory
    479479include /etc/ld.so.conf.d/*.conf
     
    481481EOF
    482482mkdir -pv /etc/ld.so.conf.d</userinput></screen>
     483
     484  <para>Tell the dynamic loader how to find the libraries for Rustc:</para>
     485
     486<screen><userinput>echo /opt/rustc/lib > /etc/ld.so.conf.d/rust.conf
     487ldconfig</userinput></screen>
    483488
    484489  </sect3>
Note: See TracChangeset for help on using the changeset viewer.