[vlc-devel] [PATCH] [RFC] Configure: enable LTO if present

Rémi Denis-Courmont remi at remlab.net
Tue Aug 1 08:32:13 CEST 2017


Le 1 août 2017 00:41:50 GMT+03:00, Jean-Baptiste Kempf <jb at videolan.org> a écrit :
>---
> configure.ac | 6 ++++++
> 1 file changed, 6 insertions(+)
>
>diff --git a/configure.ac b/configure.ac
>index e303715514..fe7e273ea0 100644
>--- a/configure.ac
>+++ b/configure.ac
>@@ -1049,6 +1049,12 @@ AS_IF([test "${enable_optimizations}" != "no"],
>[
>RDC_PROG_CXX_FFLAGS([no-math-errno unsafe-math-optimizations
>no-rounding-math no-signaling-nans cx-limited-range])
>   AC_LANG_POP
> 
>+  dnl Check for LTO
>+  RDC_PROG_CC_FFLAGS([lto])
>+  AC_LANG_PUSH(C++)
>+  RDC_PROG_CXX_FFLAGS([lto])
>+  AC_LANG_POP
>+
> AH_BOTTOM([
> #if defined(_MSC_VER) && !defined(__clang__)
> # pragma fenv_access(off)
>-- 
>2.13.3
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

ODR violations should be fixed before LTO is enabled.

And this breaks distcc and ccache, which will infuriate some devs, most probably.
-- 
Rémi Denis-Courmont
Typed on an inconvenient virtual keyboard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170801/b69e0f51/attachment.html>


More information about the vlc-devel mailing list