From patchwork Sat Apr 13 08:57:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1085075 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="RtQdJOsh"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44h7vZ3Yr8z9s71 for ; Sat, 13 Apr 2019 18:58:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id AFDDC86A9D; Sat, 13 Apr 2019 08:57:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bSmTLCDFb_RW; Sat, 13 Apr 2019 08:57:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2A02F86ACB; Sat, 13 Apr 2019 08:57:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 6EF691BF2BF for ; Sat, 13 Apr 2019 08:57:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6BF3C86B58 for ; Sat, 13 Apr 2019 08:57:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xNCYE99aFb2j for ; Sat, 13 Apr 2019 08:57:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id 014218632E for ; Sat, 13 Apr 2019 08:57:55 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id o25so14027649wmf.5 for ; Sat, 13 Apr 2019 01:57:55 -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:mime-version :content-transfer-encoding; bh=I6GGh+jK8ZU7m+QVArQ0DOyQikbGmV3wSSpSVCnipUs=; b=RtQdJOsh5bzMTs9LYWQ345LYAWMFGqd0CVSwodQsXQHtgnX+791RYDH/cD3YQD2I0K O/Hdn3VLRM0a/9ko6ygNA2ReEqkaKBNXRitbK2DYT7fMtZABLC84RGXhFxzMk9zSPcHY GkCje169yt4vVlGv+Lu/8w6+OKxk5TD87eXuOPA2PK0Vy2TNNpwYI2q9PIsn+/+FvBRN pR/97fHyOn/4T2dbFQ+Bmm6pXQdicrb5v0rW5+I76/x2Ybw5QJTHGz+GrGaxnONnuhNJ FrBIsIurjZhs5XD3lQXATU0Ma/W76wdHXEvQ2h+4QZMoWK28KTOjZjOm2kHDd2P2SvBF ernQ== 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:mime-version :content-transfer-encoding; bh=I6GGh+jK8ZU7m+QVArQ0DOyQikbGmV3wSSpSVCnipUs=; b=lR8eGlMAg4lNuN2Yt7lrkbnMZNDy4Xr9ctxviR8xScr64iXhWkpQIUE4z3kouNXIa7 145hcva5Kux7cI5FrerImltY/z5bAvNMmXf1t4vsDFdtE24n4KDTPWwql8dwJyP753Nv 5QRM1bkeKC9cEImgr0Tozur9rv7lzqcSMd4yzv00+PwqW+BKhv99wYPOKB0q3+niKNzf fea6Tl/zYtostNw2Lxk1BOksr8wRvqWgKYi/3wmtA6yKSWYBOr31OFfZ51GiBk2E6zkn u7/QLQlM+t+AG7k0iZwCeMKOPiJNAIH9qp4EFD+JKuZuHGYMdYHrW8mW0QD2mjfYlrc6 l3JQ== X-Gm-Message-State: APjAAAXE4Y7AS0fIrwZAHHQFOWGiiRUsXQDT6Ye3ziVQLfUHKvAORsQK HHb0wJuvZEx0cC4dvqn4hmw8TLGG X-Google-Smtp-Source: APXvYqwrHLW2kQaPDBnLVF46OUf6YYznCT9T/3ARZfS9C4d2tCiZHMvdHo3EbnGIL0QyOGAlwkrZUQ== X-Received: by 2002:a1c:9c14:: with SMTP id f20mr14131757wme.16.1555145874229; Sat, 13 Apr 2019 01:57:54 -0700 (PDT) Received: from kali.home (lfbn-ren-1-314-196.w2-10.abo.wanadoo.fr. [2.10.15.196]) by smtp.gmail.com with ESMTPSA id u8sm43327843wrt.69.2019.04.13.01.57.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Apr 2019 01:57:53 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sat, 13 Apr 2019 10:57:41 +0200 Message-Id: <20190413085741.11342-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2, 1/1] package/netsnmp: fix static build with openssl X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Use pkg-config to find openssl dependencies such as lz or latomic Fixes: - http://autobuild.buildroot.org/results/8f6fdbf8a21967363b737bc771252bcded4278a9 Signed-off-by: Fabrice Fontaine --- Changes v1 -> v2 (after review of Arnout Vandecappelle): - Drop patch and use pkg-config package/netsnmp/netsnmp.mk | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/package/netsnmp/netsnmp.mk b/package/netsnmp/netsnmp.mk index 4bd65ef17a..ed573c51e3 100644 --- a/package/netsnmp/netsnmp.mk +++ b/package/netsnmp/netsnmp.mk @@ -53,15 +53,12 @@ endif # OpenSSL ifeq ($(BR2_PACKAGE_OPENSSL),y) -NETSNMP_DEPENDENCIES += openssl +NETSNMP_DEPENDENCIES += host-pkgconf openssl NETSNMP_CONF_OPTS += \ --with-openssl=$(STAGING_DIR)/usr/include/openssl \ --with-security-modules="tsm,usm" \ --with-transports="DTLSUDP,TLSTCP" -ifeq ($(BR2_STATIC_LIBS),y) -# openssl uses zlib, so we need to explicitly link with it when static -NETSNMP_CONF_ENV += LIBS=-lz -endif +NETSNMP_CONF_ENV += LIBS=`$(PKG_CONFIG_HOST_BINARY) --libs openssl` else ifeq ($(BR2_PACKAGE_NETSNMP_OPENSSL_INTERNAL),y) NETSNMP_CONF_OPTS += --with-openssl=internal else