From 59de11b0476699ddeb2cbcd30a524b849249956a Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Mon, 13 Apr 2020 14:57:01 +0200 Subject: [PATCH] package/azure-iot-sdk-c: use full destination path for $(INSTALL) The canonical way to use $(INSTALL) is to have a full destination path, that includes the file name. Signed-off-by: Thomas Petazzoni --- package/azure-iot-sdk-c/azure-iot-sdk-c.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/azure-iot-sdk-c/azure-iot-sdk-c.mk b/package/azure-iot-sdk-c/azure-iot-sdk-c.mk index b194bf9a4c..e6345104eb 100644 --- a/package/azure-iot-sdk-c/azure-iot-sdk-c.mk +++ b/package/azure-iot-sdk-c/azure-iot-sdk-c.mk @@ -46,7 +46,7 @@ endif define AZURE_IOT_SDK_C_INSTALL_STAGING_CMDS $(foreach l,$(AZURE_IOT_SDK_C_LIBS), \ - $(INSTALL) -D -m 0755 $(@D)/$(l) $(STAGING_DIR)/usr/lib/ + $(INSTALL) -D -m 0755 $(@D)/$(l) $(STAGING_DIR)/usr/lib/$(notdir $(l)) ) cp -a $(@D)/c-utility/inc/* $(STAGING_DIR)/usr/include/ cp -a $(@D)/iothub_client/inc/* $(STAGING_DIR)/usr/include/ @@ -54,7 +54,7 @@ endef define AZURE_IOT_SDK_C_INSTALL_TARGET_CMDS $(foreach l,$(AZURE_IOT_SDK_C_LIBS), \ - $(INSTALL) -D -m 0755 $(@D)/$(l) $(TARGET_DIR)/usr/lib/ + $(INSTALL) -D -m 0755 $(@D)/$(l) $(TARGET_DIR)/usr/lib/$(notdir $(l)) ) endef