Configure script detect -fno-omit-frame-pointer and -momit-leaf-frame-pointer
compile options both together, see,
https://github.com/gperftools/gperftools/blob/master/configure.ac#L211
For RISC-V, until gcc14 -momit-leaf-frame-pointer was not supported, see,
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=39663298b5934831a0125e12f113ebd83248c3be
We use gcc12, thus the detection would be failed and no fp used in the code,
and then stacktrace_unittest's generic_fp test failed. Add --enable-frame-pointers
configure option can force -fno-omit-frame-pointer alone been used.
Sigend-off-by: laokz <zhangkai@iscas.ac.cn>
(cherry picked from commit 1d913d802acb93f2ef4f648f87ee28385f9a8553)