mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-03 16:37:43 +00:00
Always create shared python library, if python is created, needed by multiple packages
This commit is contained in:
parent
23b948f5be
commit
49d32869e0
@ -106,6 +106,7 @@ $(PYTHON_DIR)/.configured: $(PYTHON_DIR)/.hostpython
|
|||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--with-cxx=no \
|
--with-cxx=no \
|
||||||
|
--enable-shared \
|
||||||
$(DISABLE_IPV6) \
|
$(DISABLE_IPV6) \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
)
|
)
|
||||||
@ -166,7 +167,17 @@ ifneq ($(BR2_PACKAGE_PYTHON_TKINTER),y)
|
|||||||
rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/lib-tk
|
rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/lib-tk
|
||||||
endif
|
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:
|
python-clean:
|
||||||
-$(MAKE) -C $(PYTHON_DIR) distclean
|
-$(MAKE) -C $(PYTHON_DIR) distclean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user