libffi: avoid $(HOST_DIR)/usr while moving headers
authorArnout Vandecappelle <arnout@mind.be>
Wed, 5 Jul 2017 11:14:39 +0000 (13:14 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 5 Jul 2017 14:06:37 +0000 (16:06 +0200)
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libffi/libffi.mk

index 38ef2d60d086f2995613139923e933c57254f9ff..32e01e9cd18f3eff009f78be6dd3cd63b3a424bd 100644 (file)
@@ -14,13 +14,13 @@ LIBFFI_AUTORECONF = YES
 # Move the headers to the usual location, and adjust the .pc file
 # accordingly.
 define LIBFFI_MOVE_HEADERS
-       mv $(1)/usr/lib/libffi-$(LIBFFI_VERSION)/include/*.h $(1)/usr/include/
+       mv $(1)/lib/libffi-$(LIBFFI_VERSION)/include/*.h $(1)/include/
        $(SED) '/^includedir.*/d' -e '/^Cflags:.*/d' \
-               $(1)/usr/lib/pkgconfig/libffi.pc
-       rm -rf $(1)/usr/lib/libffi-*
+               $(1)/lib/pkgconfig/libffi.pc
+       rm -rf $(1)/lib/libffi-*
 endef
 
-LIBFFI_MOVE_STAGING_HEADERS = $(call LIBFFI_MOVE_HEADERS,$(STAGING_DIR))
+LIBFFI_MOVE_STAGING_HEADERS = $(call LIBFFI_MOVE_HEADERS,$(STAGING_DIR)/usr)
 LIBFFI_POST_INSTALL_STAGING_HOOKS += LIBFFI_MOVE_STAGING_HEADERS
 
 HOST_LIBFFI_MOVE_HOST_HEADERS = $(call LIBFFI_MOVE_HEADERS,$(HOST_DIR))