<p>Agreed it's broken, we should have a better fix for this -- I don't remember exactly, but IIRC it's something about <code>AC_PROG_CXX</code> setting <code>CXX</code> to <code>g++</code> if it didn't find no compiler at all, and us wanting to fail hard at configure time instead.</p>

<p>Anyway, as a workaround until it gets fixed, you can set <code>CXXFLAGS</code> to <code>-isystem /sysroot/foo</code> instead of having this in <code>CXX</code> itself.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/issues/829#issuecomment-165582221">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ8GlO1qQflrZ7qjB06LPLjGLL7iPks5pQxt8gaJpZM4G3psV.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/829#issuecomment-165582221"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>