I think I found the way to meet my needs.
optflags: x86_64 -O0 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables
optflags: amd64 -O0 -g
OPTIMIZE="-g3 -O0"
at the end of lineperl Makefile.PL --bundled-libsolv
After these 2 steps, you can see the optimization level is set to 0. But where to find the default option for perl module ExUtils::MakerMaker is sitll unknown