summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2016-11-09 13:39:39 -0600
committerWilliam Hubbs <williamh@gentoo.org>2016-11-09 13:47:12 -0600
commit6e6f1e6ac7ab12ef6493d20f63bd60228ae3cc92 (patch)
tree977bd4f4c5a06c06a54412ed17872a18d4c22e4d /app-emulation/containerd
parentnet-wireless/gr-ieee802154: you get a gnuradio block, and you get a gnuradio ... (diff)
downloadgentoo-6e6f1e6ac7ab12ef6493d20f63bd60228ae3cc92.tar.gz
gentoo-6e6f1e6ac7ab12ef6493d20f63bd60228ae3cc92.tar.bz2
gentoo-6e6f1e6ac7ab12ef6493d20f63bd60228ae3cc92.zip
app-emulation/containerd: add hardened support to 0.2.4 ebuild
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-emulation/containerd')
-rw-r--r--app-emulation/containerd/containerd-0.2.4.ebuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/app-emulation/containerd/containerd-0.2.4.ebuild b/app-emulation/containerd/containerd-0.2.4.ebuild
index 8c9e5d9b86a2..2fce33a3eb66 100644
--- a/app-emulation/containerd/containerd-0.2.4.ebuild
+++ b/app-emulation/containerd/containerd-0.2.4.ebuild
@@ -20,7 +20,7 @@ HOMEPAGE="https://containerd.tools"
LICENSE="Apache-2.0"
SLOT="0"
-IUSE="+seccomp"
+IUSE="hardened +seccomp"
DEPEND=""
RDEPEND=">=app-emulation/runc-1.0.0_rc2
@@ -31,7 +31,8 @@ S=${WORKDIR}/${P}/src/${EGO_PN}
src_compile() {
local options=( $(usex seccomp "seccomp") )
export GOPATH="${WORKDIR}/${P}" # ${PWD}/vendor
- LDFLAGS= emake GIT_COMMIT="$EGIT_COMMIT" BUILDTAGS="${options[@]}"
+ LDFLAGS=$(usex hardened '-extldflags -fno-PIC' '') \
+ emake GIT_COMMIT="$EGIT_COMMIT" BUILDTAGS="${options[@]}"
}
src_install() {