From: Thomas Petazzoni Date: Mon, 13 Apr 2020 12:57:01 +0000 (+0200) Subject: package/azure-iot-sdk-c: use full destination path for $(INSTALL) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59de11b0476699ddeb2cbcd30a524b849249956a;p=buildroot.git 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 --- 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