[cfe-commits] r118771 - /cfe/trunk/lib/Driver/Tools.cpp
Rafael Espindola
rafael.espindola at gmail.com
Wed Nov 10 18:17:51 PST 2010
Author: rafael
Date: Wed Nov 10 20:17:51 2010
New Revision: 118771
URL: http://llvm.org/viewvc/llvm-project?rev=118771&view=rev
Log:
Add -rdynamic to freebsd and openbsd. Patch by Ruben.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=118771&r1=118770&r2=118771&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Nov 10 20:17:51 2010
@@ -2929,6 +2929,8 @@
if (Args.hasArg(options::OPT_static)) {
CmdArgs.push_back("-Bstatic");
} else {
+ if (Args.hasArg(options::OPT_rdynamic))
+ CmdArgs.push_back("-export-dynamic");
CmdArgs.push_back("--eh-frame-hdr");
CmdArgs.push_back("-Bdynamic");
if (Args.hasArg(options::OPT_shared)) {
@@ -3051,6 +3053,8 @@
if (Args.hasArg(options::OPT_static)) {
CmdArgs.push_back("-Bstatic");
} else {
+ if (Args.hasArg(options::OPT_rdynamic))
+ CmdArgs.push_back("-export-dynamic");
CmdArgs.push_back("--eh-frame-hdr");
if (Args.hasArg(options::OPT_shared)) {
CmdArgs.push_back("-Bshareable");
More information about the cfe-commits
mailing list