diff options
-rw-r--r-- | package/python/python.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/package/python/python.mk b/package/python/python.mk index 78895d412..28e215c58 100644 --- a/package/python/python.mk +++ b/package/python/python.mk @@ -131,6 +131,15 @@ PYTHON_MAKE_ENV = \ PYTHON_MODULES_INCLUDE=$(STAGING_DIR)/usr/include \ PYTHON_MODULES_LIB="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" +# python distutils adds -L$LIBDIR when linking binary extensions, causing +# trouble for cross compilation +define PYTHON_FIXUP_LIBDIR + $(SED) 's|^LIBDIR=.*|LIBDIR= $(STAGING_DIR)/usr/lib|' \ + $(STAGING_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/config/Makefile +endef + +PYTHON_POST_INSTALL_STAGING_HOOKS += PYTHON_FIXUP_LIBDIR + # # Development files removal # |