--- gcc/c++ 2018/04/24 18:02:54 1.1.1.4 +++ gcc/c++ 2018/04/24 18:09:27 1.1.1.5 @@ -51,9 +51,11 @@ do # Inhibit linking with -lg++. library= ;; - -lm) - # Because libg++ uses things from the math library, make sure it - # always comes before the math library. + -lm | -lmath) + # Because libg++ uses things from the math library, make sure it + # always comes before the math library. We recognize both -lm + # and -lmath, since on some systems (e.g. m88k SVR3), it + # doesn't call it libm.a for some reason. set "$@" $library library="" ;;