toolchain.eclass: pax-mark java compiler #574808
authorMagnus Granberg <zorry@gentoo.org>
Thu, 2 Feb 2017 22:55:07 +0000 (23:55 +0100)
committerMagnus Granberg <zorry@gentoo.org>
Thu, 2 Feb 2017 22:55:07 +0000 (23:55 +0100)
eclass/toolchain.eclass

index 0d8148ffadf3e4236cb6b26a719723b4c9ca14d6..f2b1a865fe7397a5014c5f9ecd39366369d2cc85 100644 (file)
@@ -1835,6 +1835,12 @@ toolchain_src_install() {
                pax-mark -r "${D}${PREFIX}/libexec/gcc/${CTARGET}/${GCC_CONFIG_VER}/cc1"
                pax-mark -r "${D}${PREFIX}/libexec/gcc/${CTARGET}/${GCC_CONFIG_VER}/cc1plus"
        fi
+       
+       # Disable MMROTECT so java works. #574808
+       if is_gcj ; then
+               pax-mark -m "${D}${PREFIX}/libexec/gcc/${CTARGET}/${GCC_CONFIG_VER}/ecj1"
+               pax-mark -m "${D}${PREFIX}/${CTARGET}/gcc-bin/${GCC_CONFIG_VER}/gij"
+       fi
 }
 
 # Move around the libs to the right location.  For some reason,