[PATCH] remove -I/usr/include in pkg-config

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-sdr@lists.osmocom.org/.

Martin Kelly mkelly at xevo.com
Sat Apr 22 00:54:51 UTC 2017


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.



More information about the osmocom-sdr mailing list