diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-02-07 06:03:38 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-02-07 06:03:38 +0000 |
commit | f56c6d85ae8fe9892889f8737665e981592c90d9 (patch) | |
tree | 000c20bcfb611f8eda3de334931bf152d7eaf62f /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | c917c7a7b19ffe618ded71b83d70f8abe68f4114 (diff) | |
download | llvm-f56c6d85ae8fe9892889f8737665e981592c90d9.zip llvm-f56c6d85ae8fe9892889f8737665e981592c90d9.tar.gz llvm-f56c6d85ae8fe9892889f8737665e981592c90d9.tar.bz2 |
Driver: adjust linker invocation for GNUTools
Adjust the driver to invoke the linker more similar to gcc. -dynamic-linker is
only passed if -static and -shared are not part of the compiler (driver)
invocation. Replicate the passing of -export-rdynamic as per the GCC link spec:
%{!static: %{rdynamic:-export-dynamic} %{!shared:-dynamic-linker ...}}
This behaviour is consistent across all the targets that are supported, so no
need to conditionalise it on the target.
Resolves PR24245.
llvm-svn: 260019
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions