The Findutils package contains programs to find files. These programs are provided to recursively search through a directory tree and to create, maintain, and search a database (often faster than the recursive find, but unreliable if the database has not been recently updated).
Prepare Findutils for compilation:
CC="gcc ${BUILD64}" ./configure --prefix=/usr \ --libexecdir=/usr/lib64/locate --localstatedir=/var/lib64/locate
The meaning of the configure options:
This option changes the location of the locate database to be in /var/lib64/locate, which is FHS-compliant.
Compile the package:
make
To test the results, issue: make check.
Install the package:
make install