In:
http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01346.html
one the changes I promised (threatened?) for 4.3 was to make -mno-shared
the default for MIPS GNU/Linux if gcc is configured to use a version of
binutils that supports -mno-shared. See the link above for the rationale.
The patch below does this. Regression tested on mips64-linux-gnu
(all three ABIs). I also built a new cross sysroot with this patch,
and it was that sysroot I used for the gcc regression tests. Everything
seemed to go well. Applied to trunk.
If you find any fallout from this patch, please do let me know.
Richard
gcc/
* configure.ac (HAVE_AS_NO_SHARED): New AC_DEFINE. Test for the
-mno-shared assembler option on mips targets.
* configure, config.in: Regenerate.
* config/mips/linux.h (NO_SHARED_SPECS): New macro.
(DRIVER_SELF_SPECS): Define to NO_SHARED_SPECS if non-empty.
* config/mips/linux64.h (DRIVER_SELF_SPECS): Include NO_SHARED_SPECS.