Fix Compilation with DebugMode in Yocto arm sdk
Fix Compilation with DebugMode in Yocto arm sdk

- With d47f9a099a4ef992351237b0f2f562b5dc843397 being merged,
  we had enable all the security flags by default in openbmc.

- This has broken the pldm compilation in arm-sdk, as we default
  to debug mode(which does not have any optimization), and the
  FORTIFY_SOURCE only compiles with an optimization level {1,2}.

- We could not hit this problem till now beacuse both the dockerCI
  and also the yocto build bydefault overrides the buildtype to
  debugoptimized(which by default enables -O2).

- The intent behind this commit is to change the default buildtype
  to debugoptimized(-O2) from debug(-O2), as these are the yocto
  defaults & also make sure we can build pldm even in debug mode.

TestedBy:

1. With this patchset, was able to get a clean compilation in both
   debug & debugoptimized meson builds.

Signed-off-by: Manojkiran Eda <58c0f11b20f4eee4270d60d1871d69f99fda7b66@gmail.com>
Change-Id: I910256c3aeffcbab0cbc33ced541b90576ce4151

openbmc/pldm,openbmc/pldm,openbmc/pldm