games-emulation/mupen64plus-ui-console: Remove -fno-PIE to fix build
authorMichał Górny <mgorny@gentoo.org>
Sat, 6 Jan 2018 20:54:47 +0000 (21:54 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 6 Jan 2018 20:59:31 +0000 (21:59 +0100)
Remove the Makefile code responsible for appending -fPIE/-fno-PIE
to ensure that the compiler defaults are respected, and the package
is built correctly and consistently.

Closes: https://bugs.gentoo.org/622122

games-emulation/mupen64plus-ui-console/mupen64plus-ui-console-2.5.ebuild

index f3b2fb7bfeaf1eb871249bbd2df6962271e00e19..5f293ce409ee6b22dce98f046c4829b3db262cb7 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -28,6 +28,9 @@ src_prepare() {
 
        # avoid implicitly appending CPU flags
        sed -i -e 's:-mmmx::g' -e 's:-msse::g' projects/unix/Makefile || die
+
+       # avoid appending -fPIE/-fno-PIE
+       sed -i -e '/^if.*PIE/,/endif/d' projects/unix/Makefile || die
 }
 
 src_compile() {