From: Peter Korsgaard Date: Thu, 27 Mar 2008 13:00:31 +0000 (-0000) Subject: libusb: correctly install into STAGING_DIR/usr X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=584e60c7972c6f720492c31f82715af9328eda06;p=buildroot.git libusb: correctly install into STAGING_DIR/usr Closes #2494 --- diff --git a/package/libusb/libusb.mk b/package/libusb/libusb.mk index 2c215a4791..941bc485ce 100644 --- a/package/libusb/libusb.mk +++ b/package/libusb/libusb.mk @@ -45,17 +45,17 @@ $(LIBUSB_DIR)/.configured: $(LIBUSB_DIR)/.unpacked --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ - --prefix=/ \ + --prefix=$(STAGING_DIR)/usr \ --disable-debug \ --disable-build-docs \ ) touch $@ -$(STAGING_DIR)/lib/libusb.so: $(LIBUSB_DIR)/.configured +$(STAGING_DIR)/usr/lib/libusb.so: $(LIBUSB_DIR)/.configured $(MAKE) -C $(LIBUSB_DIR) - $(MAKE) -C $(LIBUSB_DIR) DESTDIR=$(STAGING_DIR) install + $(MAKE) -C $(LIBUSB_DIR) install -$(TARGET_DIR)/$(LIBUSB_BINARY): $(STAGING_DIR)/lib/libusb.so +$(TARGET_DIR)/$(LIBUSB_BINARY): $(STAGING_DIR)/usr/lib/libusb.so cp -dpf $(STAGING_DIR)/usr/lib/libusb*.so* $(TARGET_DIR)/usr/lib/ $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libusb*.so*