From f4ea01a808f0ff66b3277652da527e1655a20be0 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 4 Oct 2016 06:55:11 +0200 Subject: fix static build, where libthread_db.so might not exist --- package/libthread_db/Makefile | 2 +- package/uclibc-ng/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/libthread_db/Makefile b/package/libthread_db/Makefile index 199afa806..33ca12679 100644 --- a/package/libthread_db/Makefile +++ b/package/libthread_db/Makefile @@ -35,7 +35,7 @@ ifeq ($(ADK_TARGET_USE_STATIC_LIBS),) ifeq ($(ADK_TARGET_LIB_MUSL),) ifeq (${ADK_TARGET_UCLINUX},) ${INSTALL_DIR} ${IDIR_LIBTHREAD_DB}/$(ADK_TARGET_LIBC_PATH) - ${CP} ${STAGING_TARGET_DIR}/lib/libthread_db*.so* ${IDIR_LIBTHREAD_DB}/$(ADK_TARGET_LIBC_PATH) + -${CP} ${STAGING_TARGET_DIR}/lib/libthread_db*.so* ${IDIR_LIBTHREAD_DB}/$(ADK_TARGET_LIBC_PATH) endif endif endif diff --git a/package/uclibc-ng/Makefile b/package/uclibc-ng/Makefile index db1ddc172..61ba8de95 100644 --- a/package/uclibc-ng/Makefile +++ b/package/uclibc-ng/Makefile @@ -32,7 +32,7 @@ INSTALL_STYLE:= manual uclibc-ng-install: $(INSTALL_DIR) $(IDIR_UCLIBC_NG)/$(ADK_TARGET_LIBC_PATH) $(IDIR_UCLIBC_NG)/etc -$(CP) $(STAGING_TARGET_DIR)/uclibc-ng/lib*/* $(IDIR_UCLIBC_NG)/$(ADK_TARGET_LIBC_PATH) - rm $(IDIR_UCLIBC_NG)/$(ADK_TARGET_LIBC_PATH)/libthread_db* + -@rm $(IDIR_UCLIBC_NG)/$(ADK_TARGET_LIBC_PATH)/libthread_db* 2>/dev/null test -z $(ADK_RUNTIME_TIMEZONE) || \ grep $(ADK_RUNTIME_TIMEZONE) ./files/tz.lst | \ cut -f 2 > $(IDIR_UCLIBC_NG)/etc/TZ -- cgit v1.2.3