I have experienced this issue as well and workaround (fix?) is to put libs between -Wl,--whole-archive -Wl,--no-whole-archive during link stage
I have experienced this issue as well and workaround (fix?) is to put libs between -Wl,--whole-archive -Wl,--no- whole-archive during link stage