1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-11 16:58:12 +03:00

Add -h as an alias for --soname

This commit is contained in:
Rui Ueyama 2021-03-01 14:34:50 +09:00
parent 231112ba7b
commit f99d770d13

View File

@ -231,7 +231,7 @@ Config parse_nonpositional_args(std::span<std::string_view> args,
conf.init = arg; conf.init = arg;
} else if (read_arg(args, arg, "fini")) { } else if (read_arg(args, arg, "fini")) {
conf.fini = arg; conf.fini = arg;
} else if (read_arg(args, arg, "soname")) { } else if (read_arg(args, arg, "soname") || read_arg(args, arg, "h")) {
conf.soname = arg; conf.soname = arg;
} else if (read_arg(args, arg, "hash-style")) { } else if (read_arg(args, arg, "hash-style")) {
if (arg == "sysv") { if (arg == "sysv") {