On Sat, Nov 28, 2020 at 07:24:27PM +0500, Andrey Rahmatullin wrote:
> * There is some magic parsing in bindings/python/setup.py related to extra
> flags, with -std= being explicitly mentioned in a comment.
This is indeed the cause.

The "compile_cmd" file contains "g++ -std=c++11", which is the contents
of the CXX autoconf variable. The setup.py code extracts the flags from
this file and appends them to the extra_cmd var. That var is then put into
the extra_compile_args var and so it gets appended to all compilation
commands. This is of course wrong (in a normal CXX var substitution those
flags would be at the beginning, not at the end), and nothing sane can be
done about it.

It also seems that I've repeated someone else's work:
https://bugs.gentoo.org/739654
I will try a patch provided there.

-- 
WBR, wRAR

Attachment: signature.asc
Description: PGP signature

Reply via email to