Link with -rdynamic instead of -Wl,-export-dynamic.
Recent versions of the OS X linker support this but follow the existing OS X linker convention of using an underscore in the option name, i.e., -export_dynamic. Rather than changing our configure scripts to check for that alternate spelling, it is simpler to just use the compiler's -rdynamic option and let it deal with translating that to the appropriate linker option. One potential disadvantage of this approach is that the compiler will typically ignore -rdynamic on platforms where it is not supported, so the HAVE_LINK_EXPORT_DYNAMIC in config.h will not necessarily show whether that option has any effect or not. I don't see any in-tree uses of that macro, so I'm assuming it is OK. llvm-svn: 187686
Showing
- llvm/autoconf/configure.ac 2 additions, 2 deletionsllvm/autoconf/configure.ac
- llvm/autoconf/m4/link_options.m4 5 additions, 4 deletionsllvm/autoconf/m4/link_options.m4
- llvm/include/llvm/Config/config.h.cmake 1 addition, 1 deletionllvm/include/llvm/Config/config.h.cmake
- llvm/include/llvm/Config/config.h.in 1 addition, 1 deletionllvm/include/llvm/Config/config.h.in
- llvm/projects/sample/autoconf/configure.ac 2 additions, 2 deletionsllvm/projects/sample/autoconf/configure.ac
- llvm/projects/sample/autoconf/m4/link_options.m4 5 additions, 4 deletionsllvm/projects/sample/autoconf/m4/link_options.m4
Loading
Please register or sign in to comment