Try with
$ fpm run <myprogram> --profile release
The meaning is the following:
--profile PROF selects the compilation profile for the build.
Currently available profiles are "release" for
high optimization and "debug" for full debug options.
If --flag is not specified the "debug" flags are the
default.
(For fpm developers, should the --flag in the last sentence of the description be --profile?)