summaryrefslogtreecommitdiff
path: root/include/llvm/Config/config.h.in
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2013-08-02 22:51:06 +0000
committerBob Wilson <bob.wilson@apple.com>2013-08-02 22:51:06 +0000
commit244acf3a4b172657924d21bbb3a65f6388cb68bd (patch)
tree763ca3cb635a2db45d48d080f339e7a31e8576b6 /include/llvm/Config/config.h.in
parent40bacacad3dac9eb5202193f685719d0f37d7f4a (diff)
downloadllvm-244acf3a4b172657924d21bbb3a65f6388cb68bd.tar.gz
llvm-244acf3a4b172657924d21bbb3a65f6388cb68bd.tar.bz2
llvm-244acf3a4b172657924d21bbb3a65f6388cb68bd.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Config/config.h.in')
-rw-r--r--include/llvm/Config/config.h.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Config/config.h.in b/include/llvm/Config/config.h.in
index 2c4d09c673..74b7829d3b 100644
--- a/include/llvm/Config/config.h.in
+++ b/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. */