g++ vs clang++: odd behavious
Hello Forum,
I'm come across a very strange issue affecting GCC. If I compile an SO using g++ [0] the library dependencies are totally different than when compiling the same SO with clang++ [1] using the exact same parameters. I imagine it's something to do with parameter order; can an enlightened guru please shed some light on this? [0] http://pastebin.com/8Xp9mwwA [1] http://pastebin.com/xM8NNj4m |
I would assume g++ detected those libs are not required, therefore dropped (for example -lpthread).
|
Quote:
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? |
My guess is that libomnis.a is completely left out from the shared object.
Perhaps: Code:
... -o libclank.so objects_modules -Wl,-whole-archive libomnis.a -Wl,-no-whole-archive ... |
Quote:
|
All times are GMT -5. The time now is 02:53 AM. |