From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-919377-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 556DE139082
	for <garchives@archives.gentoo.org>; Sun, 25 Dec 2016 16:59:03 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 9FFB4E0BFB;
	Sun, 25 Dec 2016 16:59:02 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 7B5C0E0BFB
	for <gentoo-commits@lists.gentoo.org>; Sun, 25 Dec 2016 16:59:02 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 3BAD5340C9F
	for <gentoo-commits@lists.gentoo.org>; Sun, 25 Dec 2016 16:59:01 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 43F6824B0
	for <gentoo-commits@lists.gentoo.org>; Sun, 25 Dec 2016 16:58:59 +0000 (UTC)
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" <grobian@gentoo.org>
Message-ID: <1482685133.c2f9b7ca6ac70620656cc708f936d92e1b3080a8.grobian@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/libarchive/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-arch/libarchive/libarchive-3.2.2.ebuild
X-VCS-Directories: app-arch/libarchive/
X-VCS-Committer: grobian
X-VCS-Committer-Name: Fabian Groffen
X-VCS-Revision: c2f9b7ca6ac70620656cc708f936d92e1b3080a8
X-VCS-Branch: master
Date: Sun, 25 Dec 2016 16:58:59 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 360c06d0-da12-4559-9028-c0c82ac2678e
X-Archives-Hash: 6ba761b78209ad6f054b923bc723ac51

commit:     c2f9b7ca6ac70620656cc708f936d92e1b3080a8
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 25 16:58:31 2016 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Dec 25 16:58:53 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2f9b7ca

app-arch/libarchive: fix linking on Solaris

Package-Manager: portage-2.2.28-prefix

 app-arch/libarchive/libarchive-3.2.2.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app-arch/libarchive/libarchive-3.2.2.ebuild b/app-arch/libarchive/libarchive-3.2.2.ebuild
index 44e767b..687485a 100644
--- a/app-arch/libarchive/libarchive-3.2.2.ebuild
+++ b/app-arch/libarchive/libarchive-3.2.2.ebuild
@@ -3,7 +3,7 @@
 # $Id$
 
 EAPI=6
-inherit eutils multilib-minimal toolchain-funcs autotools
+inherit eutils multilib-minimal toolchain-funcs autotools flag-o-matic
 
 DESCRIPTION="BSD tar command"
 HOMEPAGE="http://www.libarchive.org/"
@@ -78,6 +78,9 @@ multilib_src_configure() {
 		--without-lzmadec
 	)
 
+	# Fix linking on Solaris
+	[[ ${CHOST} == *-solaris* ]] && append-ldflags -lsocket  -lnsl
+
 	ECONF_SOURCE="${S}" econf "${myconf[@]}"
 }