Skip to content

Commit

Permalink
Python: replace python-config with our ow script to fix cross builds
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Raue <stephan@openelec.tv>
  • Loading branch information
sraue committed Jan 3, 2015
1 parent 6bc6985 commit 3ceb1fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/lang/Python/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ makeinstall_host() {
install

cp Parser/pgen $ROOT/$TOOLCHAIN/bin

# replace python-config to make sure python uses $SYSROOT_PREFIX
mkdir -p $ROOT/$TOOLCHAIN/bin
rm -rf $ROOT/$TOOLCHAIN/bin/python*-config

sed -e "s:%PREFIX%:$SYSROOT_PREFIX/usr:g" -e "s:%CFLAGS%:$TARGET_CFLAGS:g" \
$PKG_DIR/scripts/python-config > $ROOT/$TOOLCHAIN/bin/python2.7-config
chmod +x $ROOT/$TOOLCHAIN/bin/python2.7-config
ln -s python2.7-config $ROOT/$TOOLCHAIN/bin/python-config
}

pre_configure_target() {
Expand Down

0 comments on commit 3ceb1fe

Please sign in to comment.