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=${CLFS_HOST} --host=${CLFS_TARGET}

Compile the package:

make

Install the package:

make install

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