Accept -allow-shlib-undefined in addition to --allow-shlib-undefined.
authorRui Ueyama <ruiu@google.com>
Mon, 26 Jan 2015 22:13:53 +0000 (22:13 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 26 Jan 2015 22:13:53 +0000 (22:13 +0000)
GNU LD accepts both. CMake seems to use the former than the latter.

llvm-svn: 227144

lld/lib/Driver/GnuLdOptions.td

index 4385c82..155aa13 100644 (file)
@@ -199,7 +199,7 @@ def no_allow_shlib_undefs : Flag<["--"], "no-allow-shlib-undefined">,
      HelpText<"Do not allow undefined symbols from dynamic"
               " library when creating executables">,
      Group<grp_resolveropt>;
-def allow_shlib_undefs : Flag<["--"], "allow-shlib-undefined">,
+def allow_shlib_undefs : Flag<["-", "--"], "allow-shlib-undefined">,
      HelpText<"Allow undefined symbols from dynamic"
              " library when creating executables">,
      Group<grp_resolveropt>;