summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvmc
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-04-03 02:00:03 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-04-03 02:00:03 +0000
commit729bcaded9c805487246f783f90c609b761e67c0 (patch)
tree8510c56309c843955684f6809d5a85ff8f153c08 /llvm/tools/llvmc
parent884e66a54571bb45bc57948d2e45544ec7065225 (diff)
downloadbcm5719-llvm-729bcaded9c805487246f783f90c609b761e67c0.tar.gz
bcm5719-llvm-729bcaded9c805487246f783f90c609b761e67c0.zip
Pass -shared to the linker.
llvm-svn: 100260
Diffstat (limited to 'llvm/tools/llvmc')
-rw-r--r--llvm/tools/llvmc/plugins/Base/Base.td.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvmc/plugins/Base/Base.td.in b/llvm/tools/llvmc/plugins/Base/Base.td.in
index 3ad07c0d83a..3c4f4e95953 100644
--- a/llvm/tools/llvmc/plugins/Base/Base.td.in
+++ b/llvm/tools/llvmc/plugins/Base/Base.td.in
@@ -46,6 +46,8 @@ def OptList : OptionList<[
(help "Relocation model: PIC"), (hidden)),
(switch_option "mdynamic-no-pic",
(help "Relocation model: dynamic-no-pic"), (hidden)),
+ (switch_option "shared",
+ (help "Create a DLL instead of the regular executable")),
(parameter_option "linker",
(help "Choose linker (possible values: gcc, g++)")),
(parameter_option "mtune",
@@ -281,6 +283,7 @@ class llvm_gcc_based_linker <string cmd_prefix> : Tool<
(not_empty "l"), (forward "l"),
(not_empty "Xlinker"), (forward "Xlinker"),
(not_empty "Wl,"), (forward "Wl,"),
+ (switch_on "shared"), (forward "shared"),
(switch_on "dynamiclib"), (forward "dynamiclib"),
(switch_on "prebind"), (forward "prebind"),
(switch_on "dead_strip"), (forward "dead_strip"),
OpenPOWER on IntegriCloud