Fix an undefined reference error with static mode + LTO
ClosedPublic

Authored by lepagevalleeemmanuel on Aug 7 2018, 12:34 PM.

Details

Summary

This patch is generally useful to fix:

/tmp/ccEVEKCP.ltrans21.ltrans.o:<artificial>:function KirigamiPlugin::registerTypes(char const*)::{lambda(QQmlEngine*, QJSEngine*)#8}::_FUN(QQmlEngine*, QJSEngine*): error: undefined reference to 'Kirigami::TabletModeWatcher::self()'

It does not however fix the tablet mode itself, it justs make it past this specific error.

Test Plan

It didn't compile before and it compiled after

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
lepagevalleeemmanuel requested review of this revision.Aug 7 2018, 12:34 PM
lepagevalleeemmanuel created this revision.
mart accepted this revision.Aug 7 2018, 12:35 PM
This revision is now accepted and ready to land.Aug 7 2018, 12:35 PM
This revision was automatically updated to reflect the committed changes.
Restricted Application added a project: Kirigami. · View Herald TranscriptAug 7 2018, 12:39 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript