include $(TOPDIR)/rules.mk
PKG_NAME:=toolchain
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
PKG_LICENSE:=GPL-3.0-with-GCC-exception
LIBGCC_MAP=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc.map))
LIBGCC_SO=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so.*))
-define Build/Compile/uClibc
- $(CP) \
- $(TOOLCHAIN_DIR)/lib/libuClibc-*.so \
- $(PKG_BUILD_DIR)/
-endef
ifneq ($(LIBGCC_SO),)
define Build/Compile/libgcc
$(CP) $(LIBGCC_SO) $(PKG_BUILD_DIR)/
done
endef
- define Package/uClibc/install
- $(INSTALL_DIR) $(1)/lib
- $(CP) \
- $(TOOLCHAIN_DIR)/lib/ld*-uClibc.so.* \
- $(TOOLCHAIN_DIR)/lib/ld*-uClibc-$(LIBC_SO_VERSION).so \
- $(1)/lib/
- $(CP) \
- $(TOOLCHAIN_DIR)/lib/libc.so.* \
- $(TOOLCHAIN_DIR)/lib/libuClibc-$(LIBC_SO_VERSION).so \
- $(1)/lib/
- $(CP) \
- $(PKG_BUILD_DIR)/libuClibc-* \
- $(1)/lib/
- endef
-
LD_MUSL_NAME = $(notdir $(firstword $(wildcard $(TOOLCHAIN_DIR)/lib/libc.so*)))
define Package/musl/install
define Package/libpthread/install
$(INSTALL_DIR) $(1)/lib
- ifneq ($(CONFIG_USE_MUSL)$(CONFIG_USE_UCLIBC),y)
+ ifneq ($(CONFIG_USE_MUSL),y)
$(CP) \
$(TOOLCHAIN_DIR)/lib/libpthread.so.* \
$(TOOLCHAIN_DIR)/lib/libpthread-$(LIBC_SO_VERSION).so \
$(INSTALL_DIR) $(1)/lib
$(CP) \
$(TOOLCHAIN_DIR)/lib/libthread_db.so.* $(1)/lib
- ifeq ($(CONFIG_USE_UCLIBC),y)
- $(CP) \
- $(TOOLCHAIN_DIR)/lib/libthread_db-$(LIBC_SO_VERSION).so \
- $(1)/lib/
- endif
endef
define Package/libpthread/install_lib
define Package/librt/install
$(INSTALL_DIR) $(1)/lib
- ifneq ($(CONFIG_USE_MUSL)$(CONFIG_USE_UCLIBC),y)
+ ifneq ($(CONFIG_USE_MUSL),y)
$(CP) \
$(TOOLCHAIN_DIR)/lib/librt.so.* \
$(TOOLCHAIN_DIR)/lib/librt-$(LIBC_SO_VERSION).so \