locate-make-command-line

locate-make-command-line is a variable defined in `locate.el'.
Its value is
locate-default-make-command-line


Documentation:
Function used to create the locate command line.
The Emacs commands `locate' and `locate-with-filter' use this.
This function should take one argument, a string (the name to find)
and return a list of strings. The first element of the list should be
the name of a command to be executed by a shell, the remaining elements
should be the arguments to that command (including the name to find).

You can customize this variable.