Pass -shared to the linker.

llvm-svn: 100260
This commit is contained in:
Mikhail Glushenkov 2010-04-03 02:00:03 +00:00
parent 884e66a545
commit 729bcaded9
1 changed files with 3 additions and 0 deletions

View File

@ -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"),