From 5897974488c31926555fad405ec610c3633b528a Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 10 Dec 2012 21:48:41 +0000 Subject: [PATCH] Add support to Darwin for the -export_dynamic' flag to the linker. llvm-svn: 169775 --- clang/lib/Driver/Tools.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 634e020..2872749 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -4115,6 +4115,9 @@ void darwin::Link::ConstructJob(Compilation &C, const JobAction &JA, if (Args.hasArg(options::OPT_ObjC) || Args.hasArg(options::OPT_ObjCXX)) CmdArgs.push_back("-ObjC"); + if (Args.hasArg(options::OPT_rdynamic)) + CmdArgs.push_back("-export_dynamic"); + CmdArgs.push_back("-o"); CmdArgs.push_back(Output.getFilename()); -- 2.7.4