package/azure-iot-sdk-c: use full destination path for $(INSTALL)
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 13 Apr 2020 12:57:01 +0000 (14:57 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 13 Apr 2020 12:57:01 +0000 (14:57 +0200)
The canonical way to use $(INSTALL) is to have a full destination
path, that includes the file name.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/azure-iot-sdk-c/azure-iot-sdk-c.mk

index b194bf9a4c2e9e31c805bddcbdf1349b8abd0e7d..e6345104eb4447132bd09f1738082dd2a808c02a 100644 (file)
@@ -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