diff options
Diffstat (limited to 'dev-debug/valgrind/valgrind-9999.ebuild')
-rw-r--r-- | dev-debug/valgrind/valgrind-9999.ebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dev-debug/valgrind/valgrind-9999.ebuild b/dev-debug/valgrind/valgrind-9999.ebuild index e79b850d13a3..5a073f147105 100644 --- a/dev-debug/valgrind/valgrind-9999.ebuild +++ b/dev-debug/valgrind/valgrind-9999.ebuild @@ -75,6 +75,8 @@ src_configure() { --with-gdbscripts-dir="${EPREFIX}"/usr/share/gdb/auto-load ) + tc-is-lto && myconf+=( --enable-lto ) + # Respect ar, bug #468114 tc-export AR @@ -87,7 +89,6 @@ src_configure() { # -fstack-protector-strong See -fstack-protector (bug #620402) # -m64 -mx32 for multilib-portage, bug #398825 # -fharden-control-flow-redundancy: breaks runtime ('jump to the invalid address stated on the next line') - # -flto* fails to build, bug #858509 filter-flags -fomit-frame-pointer filter-flags -fstack-protector filter-flags -fstack-protector-all @@ -115,7 +116,8 @@ src_configure() { src_test() { # fxsave.o, tronical.o have textrels - emake LDFLAGS="${LDFLAGS} -Wl,-z,notext" check + # -fno-strict-aliasing: https://bugs.kde.org/show_bug.cgi?id=486093 + emake CFLAGS="${CFLAGS} -fno-strict-aliasing" LDFLAGS="${LDFLAGS} -Wl,-z,notext" check } src_install() { |