Commit 539a40ce authored by Dom Sekotill's avatar Dom Sekotill
Browse files

place links to curl-config & libcurl.pc in $(HOST_DIR)/...

curl-config and/or libcurl.pc are needed by the build systems of other
packages, so are needed under $(HOST_DIR) paths.
parent ff3ad50d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -60,10 +60,19 @@ endef
LIBCURL_POST_PATCH_HOOKS += $(if $(BR2_PACKAGE_OPENSSL),LIBCURL_FIX_DOT_PC)

ifeq ($(BR2_PACKAGE_CURL),)

define LIBCURL_TARGET_CLEANUP
	rm -rf $(TARGET_DIR)/usr/bin/curl
endef
LIBCURL_POST_INSTALL_TARGET_HOOKS += LIBCURL_TARGET_CLEANUP

define LIBCURL_STAGING_FIXUP_CURL_CONFIG
	ln -s $(STAGING_DIR)/usr/bin/curl-config $(HOST_DIR)/usr/bin/curl-config
	ln -s $(STAGING_DIR)/usr/lib/pkgconfig/libcurl.pc $(HOST_DIR)/usr/lib/pkgconfig/libcurl.pc
	$(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

endif

$(eval $(autotools-package))