Ignore:
Timestamp:
2009-01-26T20:46:12+01:00 (7 years ago)
Author:
nbd
Message:

fix handling of eglibc config options for packaging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/Makefile

    r14018 r14210  
    203203endef 
    204204 
     205use_libutil=$(if $(CONFIG_USE_GLIBC)$(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),libutil) 
     206use_libnsl=$(if $(CONFIG_USE_GLIBC)$(CONFIG_EGLIBC_OPTION_EGLIBC_NIS),libnsl) 
     207use_nsswitch=$(if $(CONFIG_USE_GLIBC)$(CONFIG_EGLIBC_OPTION_EGLIBC_NSSWITCH),libnss_dns libnss_files) 
     208 
    205209define Package/glibc/install 
    206210        $(INSTALL_DIR) $(1)/lib 
    207211        $(CP) $(TOOLCHAIN_DIR)/lib/ld*.so.* $(1)/lib/ 
    208212        $(CP) $(TOOLCHAIN_DIR)/lib/ld-$(LIBC_VERSION).so $(1)/lib/ 
    209         for file in libanl libc libcidn libcrypt libdl libm libnsl libnss_dns libnss_files libresolv libutil; do \ 
     213        for file in libanl libc libcidn libcrypt libdl libm $(use_libnsl) $(use_nsswitch) libresolv $(use_libutil); do \ 
    210214                $(CP) $(TOOLCHAIN_DIR)/lib/$$$$file.so.* $(1)/lib/; \ 
    211215                $(CP) $(TOOLCHAIN_DIR)/lib/$$$$file-$(LIBC_VERSION).so $(1)/lib/; \ 
Note: See TracChangeset for help on using the changeset viewer.