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

<sect1 id="ch-boot-mktemp" role="wrap">
  <?dbhtml filename="mktemp.html"?>

  <title>Mktemp-&mktemp-version;</title>

  <indexterm zone="ch-boot-mktemp">
    <primary sortas="a-Mktemp">Mktemp</primary>
    <secondary>boot</secondary>
  </indexterm>

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../../final-system/common/mktemp.xml"
  xpointer="xpointer(//*[@role='package'])"/>

  <sect2 role="installation">
    <title>Installation of Mktemp</title>

    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    href="../../final-system/mips/mktemp.xml"
    xpointer="xpointer(//*[@os='p1'])"/>

    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    href="../../final-system/mips/mktemp.xml"
    xpointer="xpointer(//*[@os='p2'])"/>

    <para os="a">Mktemp will try to pass the <literal>-s</literal> switch to
    <command>install</command> to strip the binaries. This will not work when
    cross compiling, so run the following commands to remove this:</para>

<screen os="b"><userinput>cp -v Makefile.in{,.orig}
sed  's/\(0555 \)-s /\1/' Makefile.in.orig >Makefile.in</userinput></screen>

    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    href="../../final-system/common/mktemp.xml"
    xpointer="xpointer(//*[@os='c'])"/>

<screen os="e"><userinput>CC="${CC} ${BUILD64}" ./configure --prefix=/tools --with-libc\
    --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen>

    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    href="../../final-system/common/mktemp.xml"
    xpointer="xpointer(//*[@os='f'])"/>

    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    href="../../final-system/common/mktemp.xml"
    xpointer="xpointer(//*[@os='g'])"/>

    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    href="../../final-system/common/mktemp.xml"
    xpointer="xpointer(//*[@os='i'])"/>

<screen><userinput>make install</userinput></screen>

  </sect2>

  <sect2 role="content">
    <title/>

    <para>Details on this package are located in <xref linkend="contents-mktemp" role="."/></para>

  </sect2>

</sect1>
