summaryrefslogtreecommitdiffstats
path: root/package/libusb/libusb.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/libusb/libusb.mk')
-rw-r--r--package/libusb/libusb.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/libusb/libusb.mk b/package/libusb/libusb.mk
index 7675f23d3..4e06dc883 100644
--- a/package/libusb/libusb.mk
+++ b/package/libusb/libusb.mk
@@ -51,9 +51,9 @@ $(STAGING_DIR)/lib/libusb.so: $(LIBUSB_DIR)/.configured
$(MAKE) -C $(LIBUSB_DIR) DESTDIR=$(STAGING_DIR) install
$(TARGET_DIR)/$(LIBUSB_BINARY): $(STAGING_DIR)/lib/libusb.so
- mkdir -p $(TARGET_DIR)/usr/lib
- cp -dpf $(STAGING_DIR)/lib/libusb* $(TARGET_DIR)/usr/lib
- rm -f $(TARGET_DIR)/usr/lib/*.a $(TARGET_DIR)/usr/lib/*.la
+ $(INSTALL) -D $(LIBUSB_DIR)/.libs/libusb*.so* $(STAGING_DIR)/usr/lib/
+ $(INSTALL) -D $(LIBUSB_DIR)/.libs/libusb*.so* $(TARGET_DIR)/usr/lib/
+ $(STRIP) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libusb*.so*
libusb: uclibc $(TARGET_DIR)/$(LIBUSB_BINARY)