mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +00:00
package/ncurses: fix shared-only libs
For a shared-only build, do not create the symlinks to the static libraries, since they do not exist. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
d213b3bc0d
commit
f44080e13c
@ -47,8 +47,7 @@ ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
|
|||||||
NCURSES_CONF_OPTS += --enable-widec
|
NCURSES_CONF_OPTS += --enable-widec
|
||||||
NCURSES_LIB_SUFFIX = w
|
NCURSES_LIB_SUFFIX = w
|
||||||
|
|
||||||
ifeq ($(BR2_STATIC_LIBS),y)
|
define NCURSES_LINK_LIBS_STATIC
|
||||||
define NCURSES_LINK_LIBS
|
|
||||||
for lib in $(NCURSES_LIBS-y); do \
|
for lib in $(NCURSES_LIBS-y); do \
|
||||||
ln -sf $${lib}$(NCURSES_LIB_SUFFIX).a \
|
ln -sf $${lib}$(NCURSES_LIB_SUFFIX).a \
|
||||||
$(1)/usr/lib/$${lib}.a; \
|
$(1)/usr/lib/$${lib}.a; \
|
||||||
@ -56,23 +55,22 @@ define NCURSES_LINK_LIBS
|
|||||||
ln -sf libncurses$(NCURSES_LIB_SUFFIX).a \
|
ln -sf libncurses$(NCURSES_LIB_SUFFIX).a \
|
||||||
$(1)/usr/lib/libcurses.a
|
$(1)/usr/lib/libcurses.a
|
||||||
endef
|
endef
|
||||||
else
|
|
||||||
define NCURSES_LINK_LIBS
|
define NCURSES_LINK_LIBS_SHARED
|
||||||
for lib in $(NCURSES_LIBS-y); do \
|
for lib in $(NCURSES_LIBS-y); do \
|
||||||
ln -sf $${lib}$(NCURSES_LIB_SUFFIX).a \
|
|
||||||
$(1)/usr/lib/$${lib}.a; \
|
|
||||||
ln -sf $${lib}$(NCURSES_LIB_SUFFIX).so \
|
ln -sf $${lib}$(NCURSES_LIB_SUFFIX).so \
|
||||||
$(1)/usr/lib/$${lib}.so; \
|
$(1)/usr/lib/$${lib}.so; \
|
||||||
done
|
done
|
||||||
ln -sf libncurses$(NCURSES_LIB_SUFFIX).a \
|
|
||||||
$(1)/usr/lib/libcurses.a
|
|
||||||
ln -sf libncurses$(NCURSES_LIB_SUFFIX).so \
|
ln -sf libncurses$(NCURSES_LIB_SUFFIX).so \
|
||||||
$(1)/usr/lib/libcurses.so
|
$(1)/usr/lib/libcurses.so
|
||||||
endef
|
endef
|
||||||
endif
|
|
||||||
|
|
||||||
NCURSES_LINK_TARGET_LIBS = $(call NCURSES_LINK_LIBS, $(TARGET_DIR))
|
NCURSES_LINK_TARGET_LIBS = \
|
||||||
NCURSES_LINK_STAGING_LIBS = $(call NCURSES_LINK_LIBS, $(STAGING_DIR))
|
$(if $(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),$(call NCURSES_LINK_LIBS_STATIC,$(TARGET_DIR))) \
|
||||||
|
$(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),$(call NCURSES_LINK_LIBS_SHARED,$(TARGET_DIR)))
|
||||||
|
NCURSES_LINK_STAGING_LIBS = \
|
||||||
|
$(if $(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),$(call NCURSES_LINK_LIBS_STATIC,$(STAGING_DIR))) \
|
||||||
|
$(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),$(call NCURSES_LINK_LIBS_SHARED,$(STAGING_DIR)))
|
||||||
|
|
||||||
NCURSES_POST_INSTALL_STAGING_HOOKS += NCURSES_LINK_STAGING_LIBS
|
NCURSES_POST_INSTALL_STAGING_HOOKS += NCURSES_LINK_STAGING_LIBS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user