summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2017-08-22 14:50:47 +0200
committerFabian Groffen <grobian@gentoo.org>2017-08-22 14:50:47 +0200
commitf9d67c55b8d7adb4f7771328d0dee6f0c578f542 (patch)
treec5d32f2efbafbe4ed8f08cc0e1bc745ab1486899 /app-shells/dash
parentprofiles/prefix: p.mask curl-7.55.1, upstream#1784 (diff)
downloadgentoo-f9d67c55b8d7adb4f7771328d0dee6f0c578f542.tar.gz
gentoo-f9d67c55b8d7adb4f7771328d0dee6f0c578f542.tar.bz2
gentoo-f9d67c55b8d7adb4f7771328d0dee6f0c578f542.zip
app-shells/dash: fix compilation on Solaris
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-shells/dash')
-rw-r--r--app-shells/dash/dash-0.5.9.1-r2.ebuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/app-shells/dash/dash-0.5.9.1-r2.ebuild b/app-shells/dash/dash-0.5.9.1-r2.ebuild
index d67690a06d6..d775db54f94 100644
--- a/app-shells/dash/dash-0.5.9.1-r2.ebuild
+++ b/app-shells/dash/dash-0.5.9.1-r2.ebuild
@@ -19,7 +19,7 @@ fi
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="libedit static vanilla"
RDEPEND="!static? ( libedit? ( dev-libs/libedit ) )"
@@ -47,6 +47,10 @@ src_prepare() {
}
src_configure() {
+ # don't redefine stat on Solaris
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ export ac_cv_func_stat64=yes
+ fi
append-cppflags -DJOBS=$(usex libedit 1 0)
use static && append-ldflags -static
# Do not pass --enable-glob due to #443552.