sys-libs/compiler-rt: Fix sandbox disabling to work-around LD_PRELOAD
authorMichał Górny <mgorny@gentoo.org>
Thu, 15 Sep 2016 21:14:47 +0000 (23:14 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 15 Sep 2016 21:15:26 +0000 (23:15 +0200)
sys-libs/compiler-rt/compiler-rt-9999.ebuild

index bc28ce41606164b92eec4f9f665f477139b97f2b..829757cdd2ba12fba97ba6b75150e5b4564fa76a 100644 (file)
@@ -92,8 +92,9 @@ src_configure() {
 }
 
 src_test() {
-       # sandbox fiddles with memory error reporting and breaks tests
-       local -x SANDBOX_ON=0
+       # sandbox breaks libasan tests... and is hard to kill
+       # so abuse the fail in its algorithms
+       local -x LD_PRELOAD=${LD_PRELOAD/libsandbox/nolibsandbox}
 
        cmake-utils_src_make check-all
 }