Disable inline_asm_direct_symbol_refs if lto was requested.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 4 May 2014 15:09:21 +0000 (17:09 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 4 May 2014 15:09:21 +0000 (17:09 +0200)
This fixes link time optimizations with gcc without disabling inline asm.

Fixes ticket #2941.

configure

index 32ea79f..18b276c 100755 (executable)
--- a/configure
+++ b/configure
@@ -4904,6 +4904,7 @@ if enabled lto; then
     test "$cc_type" != "$ld_type" && die "LTO requires same compiler and linker"
     check_cflags  -flto
     check_ldflags -flto $cpuflags
+    disable inline_asm_direct_symbol_refs
 fi
 
 check_optflags $optflags