Bug 39114

Summary: autoconf check for LTO ability
Product: cairo Reporter: Marcus Meissner <meissner>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.10.2   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: cairo-check-lto.patch

Description Marcus Meissner 2011-07-10 07:16:27 UTC
Created attachment 48934 [details] [review]
cairo-check-lto.patch

Some setups accept -flto, but produce unlinkable binaries.

So test to link (and not just to compile) -flto before using it.
Comment 1 Chris Wilson 2012-04-14 06:50:13 UTC
commit d486ea30f1a58640a1178de74f705a73845b1cda
Author: Marcus Meissner <meissner@suse.de>
Date:   Sat Apr 14 14:47:02 2012 +0100

    configure: Conditionally include -flto
    
    As some systems fail to create working binaries with when linked with
    lto, perform a check during configure.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=39114
Comment 2 Uli Schlachter 2012-10-20 18:34:19 UTC
Uhm, how did you test this patch? To me, it looks like this patch doesn't actually do anything, because AC_TRY_LINK() does not use MAYBE_WARN, does it?

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.