toolchain: mark unavailable packages for musl libc

And make librt be an empty stub for musl libc.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35810 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Florian Fainelli 2013-02-26 16:40:02 +00:00
parent e7d8a74c49
commit 05d6bc87c3
1 changed files with 5 additions and 0 deletions

View File

@ -172,6 +172,7 @@ endef
define Package/libthread-db define Package/libthread-db
$(call Package/libc/Default) $(call Package/libc/Default)
DEPENDS:=@!USE_MUSL
TITLE:=POSIX thread library debugging support TITLE:=POSIX thread library debugging support
endef endef
@ -230,6 +231,7 @@ endef
define Package/ldd define Package/ldd
$(call Package/libc/Default) $(call Package/libc/Default)
DEPENDS:=@!USE_MUSL
SECTION:=utils SECTION:=utils
CATEGORY:=Utilities CATEGORY:=Utilities
TITLE:=LDD trace utility TITLE:=LDD trace utility
@ -258,6 +260,7 @@ endef
define Package/ldconfig define Package/ldconfig
$(call Package/libc/Default) $(call Package/libc/Default)
DEPENDS:=@!USE_MUSL
SECTION:=utils SECTION:=utils
CATEGORY:=Utilities CATEGORY:=Utilities
TITLE:=Shared library path configuration TITLE:=Shared library path configuration
@ -479,10 +482,12 @@ ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
define Package/librt/install define Package/librt/install
$(INSTALL_DIR) $(1)/lib $(INSTALL_DIR) $(1)/lib
ifneq ($(CONFIG_USE_MUSL),y)
$(CP) \ $(CP) \
$(TOOLCHAIN_DIR)/lib/librt.so.* \ $(TOOLCHAIN_DIR)/lib/librt.so.* \
$(TOOLCHAIN_DIR)/lib/librt-$(LIBC_SO_VERSION).so \ $(TOOLCHAIN_DIR)/lib/librt-$(LIBC_SO_VERSION).so \
$(1)/lib/ $(1)/lib/
endif
endef endef
define Package/ldd/install define Package/ldd/install