diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2009-01-15 06:28:05 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2009-01-15 06:28:05 +0000 |
commit | 49d32869e08f77835cc46949256aea1cbea03656 (patch) | |
tree | 16f40e4476285dd02c491fa78ffa6c2b3e55de73 /package | |
parent | 23b948f5be23ed01607bd588cc115e8ff51d2530 (diff) | |
download | buildroot-novena-49d32869e08f77835cc46949256aea1cbea03656.tar.gz buildroot-novena-49d32869e08f77835cc46949256aea1cbea03656.zip |
Always create shared python library, if python is created, needed by multiple packages
Diffstat (limited to 'package')
-rw-r--r-- | package/python/python.mk | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/package/python/python.mk b/package/python/python.mk index ff3b1ca7d..9bbab3503 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 |