title: How to know the optimzation options used to build a shared library in C++
body: <p>I have a very simple question but I haven't been able to find the answer yet so here I go:
  I am using a shared library and I'd like to know if it had been compiled with an optimization flag such as -O3 or not.</p>
  
  <p>Is there a way to find that information ?</p>
  
  <p>Thank you very much</p>