package/pkg-python: use _CONFIGURE_OPTS in the build environment
authorRyan Barnett <ryan.barnett@rockwellcollins.com>
Thu, 5 Dec 2019 23:11:02 +0000 (17:11 -0600)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 6 Dec 2019 22:33:56 +0000 (23:33 +0100)
commit1745fcde740057951dcc5429f3bfabd103b764a1
tree6d1bb75a3cc546fd65c509dcb1b11216ffd53983
parentee62fad783ca680ea617222bc9bc26d7c058afb8
package/pkg-python: use _CONFIGURE_OPTS in the build environment

When building host or target python packages, we need to ensure that
the build environment utilize {HOST|TARGET}_CONFIGURE_OPTS. This
ensures that the correct linker and compiler environment variables are
set to compile utilizing either the host or target folders.

It was discovered that when compiling a host-python package, it was
using linking against the build machines library folder instead of the
host folder because LDFLAGS was not properly set and was improperly
detecting whether or not a shared or static library was present in the
host folder.

CC: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Ryan Barnett <ryan.barnett@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/pkg-python.mk