diff options
-rw-r--r-- | gnu/usr.bin/gcc/gcc/cp/g++spec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/gcc/gcc/cp/g++spec.c b/gnu/usr.bin/gcc/gcc/cp/g++spec.c index ce4c68dc092..c9093d9c89a 100644 --- a/gnu/usr.bin/gcc/gcc/cp/g++spec.c +++ b/gnu/usr.bin/gcc/gcc/cp/g++spec.c @@ -138,7 +138,7 @@ lang_specific_driver (in_argc, in_argv, in_added_libraries) if (argv[i][0] == '-') { - if (library != 0 && (strcmp (argv[i], "-nostdlib") == 0 + if ((strcmp (argv[i], "-nostdlib") == 0 || strcmp (argv[i], "-nodefaultlibs") == 0)) { library = 0; |