summaryrefslogtreecommitdiff
path: root/gnu/egcs/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/egcs/gcc')
-rw-r--r--gnu/egcs/gcc/cp/g++spec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/egcs/gcc/cp/g++spec.c b/gnu/egcs/gcc/cp/g++spec.c
index 806b90ea96f..6bf4e99139d 100644
--- a/gnu/egcs/gcc/cp/g++spec.c
+++ b/gnu/egcs/gcc/cp/g++spec.c
@@ -122,6 +122,10 @@ lang_specific_driver (fn, in_argc, in_argv, in_added_libraries)
{
library = 0;
}
+ else if (strcmp (argv[i], "-shared") == 0)
+ {
+ library = 0;
+ }
else if (strcmp (argv[i], "-lm") == 0
|| strcmp (argv[i], "-lmath") == 0
|| strcmp (argv[i], MATH_LIBRARY) == 0