python: add $(STAGING_DIR)/usr/lib to PYTHON_MODULES_LIB so that
authorWade Berrier <wberrier@gmail.com>
Thu, 30 Oct 2008 17:21:18 +0000 (17:21 -0000)
committerWade Berrier <wberrier@gmail.com>
Thu, 30 Oct 2008 17:21:18 +0000 (17:21 -0000)
 modules build correctly (particularly readline)

package/python/python.mk

index 6fc8e515e63279a2a31bdbb1d5fab86bf5ed5007..ba2d23e773516383e8459835bff8ce7453a2ebae 100644 (file)
@@ -117,7 +117,7 @@ ifneq ($(BR2_PACKAGE_PYTHON_SSL),y)
 endif
        $(MAKE) CC=$(TARGET_CC) -C $(PYTHON_DIR) DESTDIR=$(TARGET_DIR) \
                PYTHON_MODULES_INCLUDE=$(STAGING_DIR)/usr/include \
-               PYTHON_MODULES_LIB=$(STAGING_DIR)/lib \
+               PYTHON_MODULES_LIB="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
                PYTHON_DISABLE_MODULES="$(BR2_PYTHON_DISABLED_MODULES)" \
                HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen
 
@@ -130,7 +130,7 @@ endif
        $(MAKE) CC=$(TARGET_CC) -C $(PYTHON_DIR) install \
                DESTDIR=$(TARGET_DIR) CROSS_COMPILE=yes \
                PYTHON_MODULES_INCLUDE=$(STAGING_DIR)/usr/include \
-               PYTHON_MODULES_LIB=$(STAGING_DIR)/lib \
+               PYTHON_MODULES_LIB="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
                PYTHON_DISABLE_MODULES="$(BR2_PYTHON_DISABLED_MODULES)" \
                HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen && \
        rm $(TARGET_DIR)/usr/bin/python && \