The options should be the same that your perl binary was
complied with. Those options should be saved in the Config
module.
Read the
perlembed manpage.
You can use
ExtUtils::Embed module to get at these options
easier. This is in the above manpage:
cc -o interp interp.c `perl -MExtUtils::Embed -e ccopts -e ldopts`