summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/libcurl/libcurl.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
index e8f13bb4c..50a55b4de 100644
--- a/package/libcurl/libcurl.mk
+++ b/package/libcurl/libcurl.mk
@@ -30,6 +30,12 @@ endef
LIBCURL_POST_INSTALL_TARGET_HOOKS += LIBCURL_TARGET_CLEANUP
+define LIBCURL_STAGING_FIXUP_CURL_CONFIG
+ $(SED) "s,prefix=/usr,prefix=$(STAGING_DIR)/usr," $(STAGING_DIR)/usr/bin/curl-config
+endef
+
+LIBCURL_POST_INSTALL_STAGING_HOOKS += LIBCURL_STAGING_FIXUP_CURL_CONFIG
+
$(eval $(call AUTOTARGETS))
curl: libcurl