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.
Этот коммит содержится в:
родитель
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;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user