Skip to content

Conversation

@jherland
Copy link

@jherland jherland commented Aug 5, 2019

When (cross-)compiling, setup.py will pick up header search dirs from
$CPPFLAGS and lib search dirs from $LDFLAGS. However, the code only
looks at the -I options in $CPPFLAGS to find header search dirs.

Using the -isystem option (instead of -I) to pass header search dirs is
also a valid option, but this is currently unsupported by setup.py.

This patch adds handling of -isystem options, so that these are picked
up the same way that -I options currently are.

https://bugs.python.org/issue37763

When (cross-)compiling, setup.py will pick up header search dirs from
$CPPFLAGS and lib search dirs from $LDFLAGS. However, the code only
looks at the -I options in $CPPFLAGS to find header search dirs.

Using the -isystem option (instead of -I) to pass header search dirs is
also a valid option, but this is currently unsupported by setup.py.

This patch adds handling of -isystem options, so that these are picked
up the same way that -I options currently are.
@erlend-aasland
Copy link
Contributor

Thanks for you PR. setup.py is no longer part of the code base.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants