From c6754ed548deecdc37c5a019fb1e5a705dc44da5 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 18 Apr 2019 11:53:36 +0200 Subject: [PATCH] Do not redefine a stripped-down LyXRC object. I am not sure why it was done this way, but it is not really necessary. Moreover gcc LTO does not like it. --- src/client/client.cpp | 7 ++++--- src/tex2lyx/dummy_impl.cpp | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/client/client.cpp b/src/client/client.cpp index 023e73e96b..ceea5d1742 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -12,6 +12,8 @@ #include +#include "LyXRC.h" + #include "support/ConsoleApplication.h" #include "support/debug.h" #include "support/FileName.h" @@ -70,9 +72,8 @@ namespace lyx { bool verbose = false; // Dummy LyXRC support -struct LyXRC { - string icon_set; -} lyxrc; +LyXRC::LyXRC() {} +LyXRC lyxrc; // Keep the linker happy on Windows void lyx_exit(int) diff --git a/src/tex2lyx/dummy_impl.cpp b/src/tex2lyx/dummy_impl.cpp index 79278f40a3..f38526f118 100644 --- a/src/tex2lyx/dummy_impl.cpp +++ b/src/tex2lyx/dummy_impl.cpp @@ -20,6 +20,7 @@ #include "Format.h" #include "LaTeXFeatures.h" +#include "LyXRC.h" #include "output_xhtml.h" #include "support/Messages.h" @@ -58,7 +59,8 @@ bool verbose = false; // -class LyXRC {} lyxrc; +LyXRC::LyXRC() {} +LyXRC lyxrc; //