|
@@ -40,15 +40,26 @@ ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
|
|
|
NCURSES_CONF_OPT += --enable-widec
|
|
|
NCURSES_LIB_SUFFIX = w
|
|
|
|
|
|
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
|
|
define NCURSES_LINK_LIBS
|
|
|
for lib in $(NCURSES_LIBS-y); do \
|
|
|
+ ln -sf $${lib}$(NCURSES_LIB_SUFFIX).a \
|
|
|
+ $(1)/usr/lib/$${lib}.a; \
|
|
|
+ done
|
|
|
+endef
|
|
|
+else
|
|
|
+define NCURSES_LINK_LIBS
|
|
|
+ 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 \
|
|
|
$(1)/usr/lib/$${lib}.so; \
|
|
|
done
|
|
|
endef
|
|
|
+endif
|
|
|
|
|
|
-NCURSES_LINK_TARGET_LIBS = $(call NCURSES_LINK_LIBS, $(TARGET_DIR))
|
|
|
-NCURSES_LINK_STAGING_LIBS = $(call NCURSES_LINK_LIBS, $(STAGING_DIR))
|
|
|
+NCURSES_LINK_TARGET_LIBS = $(call NCURSES_LINK_LIBS, $(TARGET_DIR))
|
|
|
+NCURSES_LINK_STAGING_LIBS = $(call NCURSES_LINK_LIBS, $(STAGING_DIR))
|
|
|
|
|
|
NCURSES_POST_INSTALL_STAGING_HOOKS += NCURSES_LINK_STAGING_LIBS
|
|
|
|