diff options
author | Bob Wilson <bob.wilson@apple.com> | 2013-08-02 22:51:06 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2013-08-02 22:51:06 +0000 |
commit | 8658b9147d5bb8f82466685ed7774c49588bb3a7 (patch) | |
tree | 123ff31164895e3a6e1d1660280857cf18639186 /llvm/include | |
parent | abca2ecaab80ca637b8dc8ae42bb6ed17e5c22ff (diff) | |
download | bcm5719-llvm-8658b9147d5bb8f82466685ed7774c49588bb3a7.tar.gz bcm5719-llvm-8658b9147d5bb8f82466685ed7774c49588bb3a7.zip |
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
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/Config/config.h.cmake | 2 | ||||
-rw-r--r-- | llvm/include/llvm/Config/config.h.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Config/config.h.cmake b/llvm/include/llvm/Config/config.h.cmake index 98f7417efb1..97035937fce 100644 --- a/llvm/include/llvm/Config/config.h.cmake +++ b/llvm/include/llvm/Config/config.h.cmake @@ -209,7 +209,7 @@ /* Define to 1 if you have the <limits.h> header file. */ #cmakedefine HAVE_LIMITS_H ${HAVE_LIMITS_H} -/* Define if you can use -Wl,-export-dynamic. */ +/* Define if you can use -rdynamic. */ #define HAVE_LINK_EXPORT_DYNAMIC 1 /* Define if you can use -Wl,-R. to pass -R. to the linker, in order to add diff --git a/llvm/include/llvm/Config/config.h.in b/llvm/include/llvm/Config/config.h.in index 2c4d09c6734..74b7829d3b5 100644 --- a/llvm/include/llvm/Config/config.h.in +++ b/llvm/include/llvm/Config/config.h.in @@ -220,7 +220,7 @@ /* Define to 1 if you have the `z' library (-lz). */ #undef HAVE_LIBZ -/* Define if you can use -Wl,-export-dynamic. */ +/* Define if you can use -rdynamic. */ #undef HAVE_LINK_EXPORT_DYNAMIC /* Define to 1 if you have the <link.h> header file. */ |