<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../general.ent">
  %general-entities;
]>

<sect1 id="ch-cleanup-copy-libs">
  <?dbhtml filename="copylibs.html"?>

  <title>Copy Libraries</title>

  <para>Since the cross compiler was built within
    <filename>${CLFS}/cross-tools</filename>, the generated libraries need to be
    copied to the target:</para>

<screen><userinput>cp -v ${CLFS}/cross-tools/${CLFS_TARGET}/lib/*.so* ${CLFS}/targetfs/lib/</userinput></screen>

  <para>Optionally, strip the libraries to reduce their size:</para>

<screen><userinput>${CLFS_TARGET}-strip ${CLFS}/targetfs/lib/*</userinput></screen>

</sect1>
