This patch includes LDFLAGS_SL in SHLIB_LINK on most ports (previously
it was only used on AIX and BeOS), and adds support for specifying it in
configure.
This lets you do something like:
./configure LDFLAGS=-static-libgcc LDFLAGS_SL=-static-libgcc
to produce binaries that do not depend on libgcc_s.so at all.
I haven't touched the win32/cygwin section of Makefile.shlib as I'm not
sure exactly where it'd be useful to add LDFLAGS_SL.
-O