On 04/21/2017 04:39 PM, Martin Kelly wrote:
On 04/21/2017 03:42 PM, Sylvain Munaut wrote:
Well (a) is fine ... but you can only remove /usr/include ... not
${includedir}
So you need to test is includedir is indeed /usr/include and then you
can omit it but if not, then you need to leave it.
This could work, but it still would break some machine that uses
somewhere else for system compiler path. Perhaps doing what qtbittorrent
did and just removing what QMake adds is the best solution, absent QMake
fixing it.
OK, I have fixed it in the manner that qtbittorrent did (manually
removing -isystem /usr/include flags from what QMake provides). It's not
pretty, but if QMake's behaviors remains as it is, I'm not sure there's
much else to do. Feel free to drop this patch.