[llvm] r226828 - Pass -Wl, -z, defs when building shared libraries, but not with the sanitizers.

Chaoren Lin chaorenl at google.com
Fri Jan 23 11:37:18 PST 2015


Hi Rafael,

This commit causes link errors for LLDB on Linux:

[308/2938] Linking CXX shared library lib/readline.so
FAILED: : && /usr/bin/clang++  -fPIC  -fPIC -fvisibility-inlines-hidden
-Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wmissing-field-initializers -pedantic -Wno-long-long
-Wcovered-switch-default -std=c++11 -fcolor-diagnostics -ffunction-sections
-fdata-sections -g  -Wl,-z,defs -shared -Wl,-soname,readline.so -o
lib/readline.so
tools/lldb/scripts/Python/modules/readline/CMakeFiles/readline.dir/readline.cpp.o
 -Wl,-rpath,"\$ORIGIN/../lib" && :
tools/lldb/scripts/Python/modules/readline/CMakeFiles/readline.dir/readline.cpp.o:
In function `initreadline':
/usr/local/src/llvm/tools/lldb/scripts/Python/modules/readline/readline.cpp:21:
undefined reference to `Py_InitModule4_64'
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

Could you exclude Linux for now as well?

2015-01-22 12:59 GMT-08:00 Rafael EspĂ­ndola <rafael.espindola at gmail.com>:

> r226862.
>
> Cheers,
> Rafael
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150123/1afe41b5/attachment.html>


More information about the llvm-commits mailing list