Fix link ordering - BUG411425
Open, Needs TriagePublic

Description

Quoting BUG411425:

"The linking is ordered alphabetically in src/drive/CMakeLists.txt, and fails
with a segfault, if LTO is used, because LTO doesn't stick to the supplied linking order, if it sees a chance to optimize module locality."

What would be the correct way to approach this bug? Manually reordering source files in kgapidrive_SRCS is probably one way, are there other ways to handle this in a less laborious way?

Sounds like there might be a problem with exports or some symbol name duplication that leads to some weird behavior during LTO.