7.13. Mktemp-1.5

#### Cross-Compiled Linux From Scratch - Version 1.0.0rc1-PowerPC

### Chapter 7. If You Are Going to Boot

- Prev

  Hfsutils-3.2.6

- Next

  Powerpc-Utils_1.1.3

- Up.
- Home

# 7.13. Mktemp-1.5

The Mktemp package contains programs used to create secure temporary files in shell scripts.

## 7.13.1. Installation of Mktemp

Mktemp will try to pass the `-s` switch to install to strip the binaries. This will not work when cross compiling, so run the following commands to remove this:

    cp -v Makefile.in{,.orig}
    sed  's/\(0555 \)-s /\1/' Makefile.in.orig >Makefile.in

Prepare Mktemp for compilation:

    CC="${CC}" ./configure --prefix=/tools --with-libc\
        --build=${LFS_HOST} --host=${LFS_TARGET}

Compile the package:

    make

Install the package:

    make install

Details on this package are located in Section 10.42.2, “Contents of Mktemp.”

- Prev

  Hfsutils-3.2.6

- Next

  Powerpc-Utils_1.1.3

- Up.
- Home.