1
1

If a user supplies both (some form of --static) and (some form of

--dynamic), use the one that was farthest to the right on the command
line.

This commit was SVN r27667.
Этот коммит содержится в:
Jeff Squyres 2012-12-11 21:25:00 +00:00
родитель b8a83c43fd
Коммит 529f6244ca

Просмотреть файл

@ -724,6 +724,13 @@ main(int argc, char *argv[])
0 == strcmp(user_argv[i], "-Wl,--static") ||
0 == strcmp(user_argv[i], "-Wl,-Bstatic")) {
flags |= COMP_WANT_STATIC;
} else if (0 == strcmp(user_argv[i], "-dynamic") ||
0 == strcmp(user_argv[i], "--dynamic") ||
0 == strcmp(user_argv[i], "-Bdynamic") ||
0 == strcmp(user_argv[i], "-Wl,-dynamic") ||
0 == strcmp(user_argv[i], "-Wl,--dynamic") ||
0 == strcmp(user_argv[i], "-Wl,-Bdynamic")) {
flags &= ~COMP_WANT_STATIC;
} else if ('-' != user_argv[i][0]) {
disable_flags = false;
flags |= COMP_SHOW_ERROR;