From patchwork Fri Jul 14 18:15:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 788706 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x8LVB0Xmhz9s78 for ; Sat, 15 Jul 2017 04:16:18 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="aI42/wnt"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D388130B53; Fri, 14 Jul 2017 18:16:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eXRDZSkzgUMY; Fri, 14 Jul 2017 18:16:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id AA65330B5D; Fri, 14 Jul 2017 18:16:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id C7AFB1BFA4B for ; Fri, 14 Jul 2017 18:16:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C414E890A0 for ; Fri, 14 Jul 2017 18:16:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L8IZExxjzzJK for ; Fri, 14 Jul 2017 18:16:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-io0-f196.google.com (mail-io0-f196.google.com [209.85.223.196]) by whitealder.osuosl.org (Postfix) with ESMTPS id 3E4AA89070 for ; Fri, 14 Jul 2017 18:16:02 +0000 (UTC) Received: by mail-io0-f196.google.com with SMTP id 84so2886086iop.2 for ; Fri, 14 Jul 2017 11:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gdG6DeaDRFCc9HQfqa5mzJYa0JYvbjIMpXXxEH4g4+k=; b=aI42/wntcjHaYZIW46nTAziilC4+sEFWBMh5nlgS8Kb2hQU0lin4ZqGrpVJOTTCpLU KubiEyXgzwAVJ9rCPIkV0sIcg+aX45hwnuDZ60LAc3MDI9vlw/a++ttMHmATjVZFu4f5 caOcjBu9wOpKV7wntBHVepQjWW/5NCQcQtqH0cacAZL16XtdKBTviG6wTGnhbzEJSSRV nwNaXB3JPl+TMiwH5p+egTzttdUyBMiDIEI09kDXauGUVSM5jDRY4E3VkGFL2SJ3ApWR MZ2ykyhZsP2I6HfevMw0xDdv9dwPlchSQVYNZGlrfCZROzEyg4z75R5tKaFyTiph6Zwu S2tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gdG6DeaDRFCc9HQfqa5mzJYa0JYvbjIMpXXxEH4g4+k=; b=Nq9TCjCChOfWPC/kE4fwOjw2MbsRL9NWE9kOWY5XrOBAfK29bHjzs2vh4k9oAoiGPI Uh42lsqxnHi5iTluHrmC15wd/xE/84KjT8lqJ1xMc+EafXucH+fz36zfAJjDrm+ZdCC7 OAP7UeTLtcYtBKksj1LfWT/0Nh5te6CD1LmOkOPvci4LyuN5Gk3VDTaclUUsuISuF9pw HXmUEjEKYXOoQaXGQ8yNB9SaXqky4lJx5wggzp8vobtUlo64s7qwj0TG38nWXWDqMykW cXumhljhsdjM51mwt+ioPAaliIODR052Zwrr0h0DRvb5oI2zxd7SKgdMIB3hUYv69d4Z 50rw== X-Gm-Message-State: AIVw111T+4SqMMoslSjgsnRJXcO/L0Yz8tM34qCf1dMbGflAlNvtIzjG jJjoc76TGTp+mLk1iO4= X-Received: by 10.107.3.234 with SMTP id e103mr10189984ioi.136.1500056161484; Fri, 14 Jul 2017 11:16:01 -0700 (PDT) Received: from localhost.localdomain (mail.codeblue.com. [65.183.183.198]) by smtp.gmail.com with ESMTPSA id u201sm1550305ita.16.2017.07.14.11.16.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Jul 2017 11:16:00 -0700 (PDT) From: Adam Duskett To: buildroot@buildroot.org Date: Fri, 14 Jul 2017 14:15:26 -0400 Message-Id: <20170714181537.17479-4-aduskett@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170714181537.17479-1-aduskett@gmail.com> References: <20170714181537.17479-1-aduskett@gmail.com> Cc: Adam Duskett Subject: [Buildroot] [PATCH 04/15] libcurl: support libressl. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Adam Duskett --- package/libcurl/libcurl.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk index 684844919..907121717 100644 --- a/package/libcurl/libcurl.mk +++ b/package/libcurl/libcurl.mk @@ -40,6 +40,16 @@ LIBCURL_CONF_ENV += ac_cv_lib_crypto_CRYPTO_lock=yes LIBCURL_CONF_ENV += LD_LIBRARY_PATH=$(if $(LD_LIBRARY_PATH),$(LD_LIBRARY_PATH):)/lib:/usr/lib LIBCURL_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr \ --with-ca-path=/etc/ssl/certs +else ifeq ($(BR2_PACKAGE_LIBRESSL),y) +LIBCURL_DEPENDENCIES += libressl +LIBCURL_CONF_ENV += ac_cv_lib_crypto_CRYPTO_lock=yes +# configure adds the cross openssl dir to LD_LIBRARY_PATH which screws up +# native stuff during the rest of configure when target == host. +# Fix it by setting LD_LIBRARY_PATH to something sensible so those libs +# are found first. +LIBCURL_CONF_ENV += LD_LIBRARY_PATH=$(if $(LD_LIBRARY_PATH),$(LD_LIBRARY_PATH):)/lib:/usr/lib +LIBCURL_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr \ + --with-ca-path=/etc/ssl/certs else ifeq ($(BR2_PACKAGE_GNUTLS),y) LIBCURL_CONF_OPTS += --with-gnutls=$(STAGING_DIR)/usr LIBCURL_DEPENDENCIES += gnutls