diff --git a/package/libs/toolchain/Makefile b/package/libs/toolchain/Makefile index 36cf8c471bc..72ce6b90e18 100644 --- a/package/libs/toolchain/Makefile +++ b/package/libs/toolchain/Makefile @@ -508,7 +508,7 @@ ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) $(INSTALL_DIR) $(1)/lib $(CP) \ $(TOOLCHAIN_DIR)/lib/libthread_db.so.* $(1)/lib - ifeq ($(USE_UCLIBC),y) + ifeq ($(CONFIG_USE_UCLIBC),y) $(CP) \ $(TOOLCHAIN_DIR)/lib/libthread_db-$(LIBC_SO_VERSION).so \ $(1)/lib/