source: clfs-embedded/BOOK/cleanup/copylibs.xml@ 796fc87

Last change on this file since 796fc87 was b608a6d, checked in by Andrew Bradford <andrew@…>, 11 years ago

libc: Create symlinks for musl ld

Just create one for each arch, that's the easy way out :)

Making this more elegant would be nice, but also doing what musl
recommends in their INSTALL file of creating an /etc/ld-musl-$ARCH.path
file with the proper shared library search path.

  • Property mode set to 100644
File size: 794 bytes
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-cleanup-copy-libs">
9 <?dbhtml filename="copylibs.html"?>
10
11 <title>Copy Libraries</title>
12
13 <para>Since the cross compiler was built within
14 <filename>${CLFS}/cross-tools</filename>, the generated libraries need to be
15 copied to the target:</para>
16
17<screen><userinput>cp -v ${CLFS}/cross-tools/${CLFS_TARGET}/lib/*.so* ${CLFS}/targetfs/lib/</userinput></screen>
18
19 <para>Optionally, strip the libraries to reduce their size:</para>
20
21<screen><userinput>${CLFS_TARGET}-strip ${CLFS}/targetfs/lib/*</userinput></screen>
22
23</sect1>
Note: See TracBrowser for help on using the repository browser.