media-libs/x265: Disable arm assembly when requesting a PIC build, it is not PIC.
authorAlexis Ballier <aballier@gentoo.org>
Tue, 7 Feb 2017 11:50:56 +0000 (12:50 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 7 Feb 2017 11:50:56 +0000 (12:50 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

media-libs/x265/x265-2.2.ebuild
media-libs/x265/x265-9999.ebuild

index a53a6c0caa95bb5a52e511be96acb7e18f5ddfc0..21d6b90d3729616e71e64dc1e457a7195fd6534b 100644 (file)
@@ -145,7 +145,8 @@ multilib_src_configure() {
                # bug #510890
                myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
        elif [[ ${ABI} = arm ]] ; then
-               myabicmakeargs+=( -DENABLE_ASSEMBLY=$(usex neon ON OFF) )
+               myabicmakeargs+=( -DENABLE_ASSEMBLY=$(usex pic OFF $(usex neon ON OFF)) )
+               use neon && use pic && ewarn "PIC has been requested but arm neon asm is not PIC-safe, disabling it."
        fi
 
        local MULTIBUILD_VARIANTS=( $(x265_get_variants) )
index 3e2490cd0219f65f6f5a7b90a21c04ba42ebb842..96a02045099c59433e77118935cec805ff46bc3d 100644 (file)
@@ -145,7 +145,8 @@ multilib_src_configure() {
                # bug #510890
                myabicmakeargs+=( -DENABLE_ASSEMBLY=OFF )
        elif [[ ${ABI} = arm ]] ; then
-               myabicmakeargs+=( -DENABLE_ASSEMBLY=$(usex neon ON OFF) )
+               myabicmakeargs+=( -DENABLE_ASSEMBLY=$(usex pic OFF $(usex neon ON OFF)) )
+               use neon && use pic && ewarn "PIC has been requested but arm neon asm is not PIC-safe, disabling it."
        fi
 
        local MULTIBUILD_VARIANTS=( $(x265_get_variants) )