Originally Posted by pan64
I would assume g++ detected those libs are not required, therefore dropped (for example -lpthread).
But the problem is when I run the g++ compiled program it fails due to an undefined symbol (not so with the clang++ version):
out/src/omnis: symbol lookup error: /home/guedesm/prj/omnis/sh/../out/sources/clank/libclank.so: undefined symbol: clang_createIndex
So if the case is it is dropping some libs then it is doing so in error.
Could it be some other reason perhaps?