python: fix source folder for libpython
authorAlexandru Ardelean <redacted>
Mon, 20 Oct 2014 16:07:23 +0000 (19:07 +0300)
committerAlexandru Ardelean <redacted>
Mon, 20 Oct 2014 16:07:28 +0000 (19:07 +0300)
This fix is quite critical since it fixes copying the libpython shared lib.
The previous source folder we've used is ok, it has the shared lib,
but libpython2.7.so is not a symlink of libpython2.7.so.1.0, but
rather a copy of it.
Which means that libpython2.7.so takes twice as much space
on the target's flash.

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/Makefile

index edecefe1d49d9d439f41cea3cdc91953d806f98f..0d4dc7bfa20a6ca565d45af7c8a8d42411bfbbda 100644 (file)
@@ -176,7 +176,7 @@ define Build/InstallDev
                $(1)/usr/include/
        $(CP) \
                $(STAGING_DIR_HOST)/lib/python$(PYTHON_VERSION) \
-               $(PKG_BUILD_DIR)/libpython$(PYTHON_VERSION).so* \
+               $(PKG_INSTALL_DIR)/usr/lib/libpython$(PYTHON_VERSION).so* \
                $(1)/usr/lib/
        $(CP) \
                $(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON_VERSION)/config \
@@ -389,7 +389,7 @@ endef
 define PyPackage/python/install
        $(LN) python$(PYTHON_VERSION) $(1)/usr/bin/python
        $(LN) python$(PYTHON_VERSION) $(1)/usr/bin/python2
-       $(CP) $(PKG_BUILD_DIR)/libpython$(PYTHON_VERSION).so* $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpython$(PYTHON_VERSION).so* $(1)/usr/lib/
 endef
 
 define PyPackage/python-doc/filespec
git clone https://git.99rst.org/PROJECT