python: fix python-dev clash with python-base
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Tue, 7 Mar 2017 10:23:47 +0000 (12:23 +0200)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Thu, 9 Mar 2017 07:23:10 +0000 (09:23 +0200)
Both want to install libpython.so.
python-dev should install libpython.a

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python/files/python-package-dev.mk

index 647f649f785b230ac57df8f0d6c83946c421b21a..7c9e21980bf9350e52ef5f57138491d5f27e6add 100644 (file)
@@ -12,9 +12,9 @@ $(call Package/python/Default)
 endef
 
 define PyPackage/python-dev/install
-       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/python*config $(1)/usr/bin
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpython$(PYTHON_VERSION).so* $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON_VERSION)/config/libpython$(PYTHON_VERSION).a $(1)/usr/lib
 endef
 
 $(eval $(call PyBasePackage,python-dev, \