┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Miller <[email protected]>2018-05-18 22:43:25 +0200
committerAndreas Sturmlechner <[email protected]>2018-05-18 22:43:58 +0200
commitb607091c3982f6b84732fcf0c23c1c3f0054f203 (patch)
treeb2b61646964ab7dd05866a0e902df882aaa2c3d8
parent9a3d4a29ba94ff6c1a506ad2b186ee19cdc574b5 (diff)
Remove main.cpp from dolphinstatic_SRCS
Summary: The file main.cpp is already in dolphin_SRCS and doesn't belong in dolphinstatic_SRCS. Normally the duplicate object is simply ignored, but with link time optimization (LTO), linking dolphin can fail. Apparently, the compiler tries to inline inline kdemain() in this case. That is undesirable anyway and it ultimately fails because the DBusInterface definition is not available: .../ccHEv6cl.ltrans0.ltrans.o: In function `DBusInterface::~DBusInterface()': <artificial>:(.text+0x2583): undefined reference to `vtable for DBusInterface' .../ccHEv6cl.ltrans0.ltrans.o: In function `DBusInterface::~DBusInterface()': <artificial>:(.text+0x5aa3): undefined reference to `vtable for DBusInterface' .../ccHEv6cl.ltrans0.ltrans.o: In function `kdemain': <artificial>:(.text+0x7686): undefined reference to `DBusInterface::DBusInterface()' <artificial>:(.text+0x7b64): undefined reference to `vtable for DBusInterface' collect2: error: ld returned 1 exit status See also <https://bugs.gentoo.org/655710>. Reviewers: #dolphin, elvisangelaccio Reviewed By: elvisangelaccio Subscribers: elvisangelaccio, asturmlechner, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D12929
-rw-r--r--src/CMakeLists.txt1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 263b3ff0c..e8fe719a4 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -207,7 +207,6 @@ set(dolphinstatic_SRCS
dolphintabwidget.cpp
trash/dolphintrash.cpp
filterbar/filterbar.cpp
- main.cpp
panels/information/filemetadataconfigurationdialog.cpp
panels/information/informationpanel.cpp
panels/information/informationpanelcontent.cpp