[LLVMdev] bugpoint (and possibly others) need to be compiled with -rdynamic

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Mar 25 10:49:10 PDT 2013


> Attached is a small patch that sets CMAKE_SHARED_LIBRARY_LINK_CXXFLAGS to "" (as per your patch which I didn't notice initially), and then sets opt, bugpoint, and JITTests to have the property ENABLE_EXPORTS set to 1. This passes -Wl,--export-dynamic on BSD and Linux (and others) and --export-all-symbols on cygwin.
>
> I'm not sure if there are others that should be modified as well. Presumably an option for clang would be easy enough to add.

This is awesome, thanks!

Chandler, is Stephen's patch OK? The trivial attached patch should
keep the status quo for clang, but I only have a OS X laptop with me
now, so I cannot test it.

> --
> Stephen Checkoway
>

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130325/5af67f20/attachment.obj>


More information about the llvm-dev mailing list