diff options
-rw-r--r-- | app-emulation/virtualbox/virtualbox-5.1.24.ebuild | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app-emulation/virtualbox/virtualbox-5.1.24.ebuild b/app-emulation/virtualbox/virtualbox-5.1.24.ebuild index 8249f3d55e26..e874868ea021 100644 --- a/app-emulation/virtualbox/virtualbox-5.1.24.ebuild +++ b/app-emulation/virtualbox/virtualbox-5.1.24.ebuild @@ -182,9 +182,9 @@ src_prepare() { fi # Only add nopie patch when we're on hardened - #if ! gcc-specs-pie ; then - # rm "${WORKDIR}"/patches/050_${PN}-*-nopie.patch || die - #fi + if gcc-specs-pie ; then + eapply "${FILESDIR}/050_virtualbox-5.1.24-nopie.patch" + fi # Only add paxmark patch when we're on pax_kernel if use pax_kernel ; then @@ -192,7 +192,6 @@ src_prepare() { fi eapply "${WORKDIR}/patches" - eapply "${FILESDIR}/050_virtualbox-5.1.24-nopie.patch" eapply_user } |