title: Is it viable to mix two static libraries with different optimization levels?
body: <p>I have two static libraries named <code>libx.a</code> and <code>liby.a</code>.</p>
  
  <p><code>libx.a</code> is compiled with <code>gcc -g</code>; while <code>liby.a</code> is compiled with <code>gcc -O3</code>.</p>
  
  <p>I want to link them two into a single executable.</p>
  
  <p>Is it viable?</p>
  
  <p>Is it harmful?</p>