From 49d32869e08f77835cc46949256aea1cbea03656 Mon Sep 17 00:00:00 2001 From: Ulf Samuelsson Date: Thu, 15 Jan 2009 06:28:05 +0000 Subject: [PATCH] Always create shared python library, if python is created, needed by multiple packages --- package/python/python.mk | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/package/python/python.mk b/package/python/python.mk index ff3b1ca7da..9bbab35036 100644 --- a/package/python/python.mk +++ b/package/python/python.mk @@ -106,6 +106,7 @@ $(PYTHON_DIR)/.configured: $(PYTHON_DIR)/.hostpython --prefix=/usr \ --sysconfdir=/etc \ --with-cxx=no \ + --enable-shared \ $(DISABLE_IPV6) \ $(DISABLE_NLS) \ ) @@ -166,7 +167,17 @@ ifneq ($(BR2_PACKAGE_PYTHON_TKINTER),y) rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/lib-tk endif -python: uclibc $(PYTHON_DEPS) $(TARGET_DIR)/$(PYTHON_TARGET_BINARY) +$(STAGING_DIR)/usr/lib/libpython$(PYTHON_VERSION_MAJOR).so: $(TARGET_DIR)/$(PYTHON_TARGET_BINARY) + cp -dpr $(PYTHON_DIR)/libpython*.so.* $(STAGING_DIR)/usr/lib + (\ + cd $(STAGING_DIR)/usr/lib ; \ + rm -f libpython$(PYTHON_VERSION_MAJOR).so ; \ + ln -s `basename \`ls libpython*.so.*\`` libpython$(PYTHON_VERSION_MAJOR).so \ + ) + +libpython: $(STAGING_DIR)/usr/lib/libpython$(PYTHON_VERSION_MAJOR).so + +python: uclibc $(PYTHON_DEPS) $(TARGET_DIR)/$(PYTHON_TARGET_BINARY) libpython python-clean: -$(MAKE) -C $(PYTHON_DIR) distclean -- 2.30.2