Bug 39114 - autoconf check for LTO ability
Summary: autoconf check for LTO ability
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.10.2
Hardware: Other All
: medium normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
Depends on:
Reported: 2011-07-10 07:16 UTC by Marcus Meissner
Modified: 2012-10-20 18:34 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

cairo-check-lto.patch (865 bytes, patch)
2011-07-10 07:16 UTC, Marcus Meissner
Details | Splinter Review

Description Marcus Meissner 2011-07-10 07:16:27 UTC
Created attachment 48934 [details] [review]

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.