From patchwork Mon Mar 10 20:26:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 328760 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id C194C2C00D3 for ; Tue, 11 Mar 2014 07:29:56 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0930F8102B; Mon, 10 Mar 2014 20:29:56 +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 uhoDtvcbXKS3; Mon, 10 Mar 2014 20:29:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 5BCBE8BC16; Mon, 10 Mar 2014 20:28:51 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 6C2141BF86E for ; Mon, 10 Mar 2014 20:28:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 687038B6E0 for ; Mon, 10 Mar 2014 20:28:50 +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 A1irE3Vq030k for ; Mon, 10 Mar 2014 20:28:48 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [78.46.79.162]) by whitealder.osuosl.org (Postfix) with ESMTPS id ADC918BAB0 for ; Mon, 10 Mar 2014 20:28:13 +0000 (UTC) Received: from asgard (host97.186-125-226.telecom.net.ar [186.125.226.97]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.8/8.14.8) with ESMTP id s2AKS74Q000793 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 10 Mar 2014 20:28:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1394483291; bh=+2rn64NfY7pKPpqGHN6aWUxW6E6Mc3t/d/DMnfBc+nM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=PScs9nHT4F0V2eXZhL20kMlJ48p0VlpcbMOLRFOv4My54S24qGKEyrFX60xZF/hip eNKyXvT8I+wOuVfv7U06Raln/IJnYp1L+23FvHoPk+po0wnJwybEAdBoi8swhHf5yN 5Zls+OLCCEUyDiOSlNsYA4LypYtvWnxSi2xr1utI= Received: by asgard (sSMTP sendmail emulation); Mon, 10 Mar 2014 17:27:17 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Mon, 10 Mar 2014 17:26:25 -0300 Message-Id: <1394483194-17592-5-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1394483194-17592-1-git-send-email-gustavo@zacarias.com.ar> References: <1394483194-17592-1-git-send-email-gustavo@zacarias.com.ar> X-Virus-Scanned: clamav-milter 0.98.1 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH 05/14] ipsec-tools: fix static linking X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net As with other packages that use openssl and don't use pkg-config to pick up the deps it fails to build for static scenarios. So fix it by adding the zlib link option to LIBS. Signed-off-by: Gustavo Zacarias --- package/ipsec-tools/ipsec-tools.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/ipsec-tools/ipsec-tools.mk b/package/ipsec-tools/ipsec-tools.mk index d5521ac..44c3380 100644 --- a/package/ipsec-tools/ipsec-tools.mk +++ b/package/ipsec-tools/ipsec-tools.mk @@ -15,6 +15,11 @@ IPSEC_TOOLS_DEPENDENCIES = openssl flex host-flex # configure hardcodes -Werror, so override CFLAGS on make invocation IPSEC_TOOLS_MAKE_OPT = CFLAGS='$(TARGET_CFLAGS)' +# openssl uses zlib, so we need to explicitly link with it when static +ifeq ($(BR2_PREFER_STATIC_LIB),y) +IPSEC_TOOLS_CONF_ENV += LIBS=-lz +endif + IPSEC_TOOLS_CONF_OPT = \ --disable-hybrid \ --without-libpam \