$ CC="mips-linux-gnu-gcc" CXX="mips-linux-gnu-g++" ./configure --target=mips-linux-gnu --host="mips-linux-gnu" --prefix="/root/toolchain/gdb/build"
$ nano Makefile
# LDFLAGS is specifically reserved for setting from the command line
# when running make.
LDFLAGS = -static
INTERNAL_LDFLAGS = $(LDFLAGS) -Wl,--dynamic-list=$(srcdir)/proc-service.list
$ make install