#705562 fix undefined references detection