Permalink
Browse files

FL-716: put hardened src_unpack parts within a conditional to fix non…

…-hardened building
  • Loading branch information...
danielrobbins committed Sep 12, 2013
1 parent 2af2ff1 commit 69c96f538a8d6b99440909c156214051e305f2ea
Showing with 4 additions and 3 deletions.
  1. +4 −3 sys-devel/gcc/gcc-4.6.4.ebuild
@@ -102,10 +102,11 @@ src_unpack() {
( unpack mpc-${MPC_VER}.tar.gz && mv ${WORKDIR}/mpc-${MPC_VER} ${S}/mpc ) || die "mpc setup fail"
( unpack mpfr-${MPFR_VER}.tar.xz && mv ${WORKDIR}/mpfr-${MPFR_VER} ${S}/mpfr ) || die "mpfr setup fail"
( unpack gmp-${GMP_VER}.tar.xz && mv ${WORKDIR}/gmp-${GMP_VER} ${S}/gmp ) || die "gmp setup fail"
- unpack $PIE_A || die "pie unpack fail"
- unpack $SPECS_A || die "specs unpack fail"
+ if use hardened; then
+ unpack $PIE_A || die "pie unpack fail"
+ unpack $SPECS_A || die "specs unpack fail"
+ fi
cd $S
-
mkdir ${WORKDIR}/objdir
}

0 comments on commit 69c96f5

Please sign in to comment.