Also...
Im Prinzip musst du dafür sorgen, dass der letzte Aufruf vom Compiler (der eigentlich als "Linker" fungiert, und die Teile zusammenfügt), den Parameter "-static" mit drin hat. Meist reicht es, den Aufruf vom "make" so zu ergänzen, dass der Parameter in den "LDFLAGS" mit drin ist, also insgesamt ein:
make LDFLAGS="-static ...."
Manchmal kann man das auch schon dem "configure" mit übergeben, dann kann man neben dem Setzen des Compilers eben auch die Linker Flags mit setzen. Es hängt aber vom Programm und dem Makefile ab, ob und an welcher Stelle man das mit angeben kann....
"Zur Not" geht eigenlich immer folgendes, wenn das Programm nicht statisch gebaut wurde:
Den letzten Aufruf vom make kopieren und mit einem "-static" ergänzen. Oft fehlen dann am Ende noch die Library dl, also ans Ende noch ein "-ldl". Wenn man sich dazu das Tinyproxy mal ansieht, ist der letzte Aufruf (bei "make V=99"):
Code:
joerg@joerg-desktop:~/freetz-trunk-new/source/target-mipsel_uClibc-0.9.29/tinyproxy-1.8.2/src$ ~/freetz-trunk-new/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc -DNDEBUG -Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fdiagnostics-show-option -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wfloat-equal -Wundef -Wformat=2 -Wlogical-op -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Waggregate-return -Winit-self -Wpacked --std=c89 -ansi -pedantic -Wc++-compat -Wno-long-long -Wno-overlength-strings -Wdeclaration-after-statement -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-qual -Wcast-align -Wwrite-strings -Wp,-D_FORTIFY_SOURCE=2 -fno-common -Wl,-z,defs -o tinyproxy acl.o anonymous.o buffer.o child.o conf.o conns.o daemon.o hashmap.o heap.o html-error.o http-message.o log.o network.o reqs.o sock.o stats.o text.o main.o utils.o vector.o upstream.o connect-ports.o filter.o reverse-proxy.o transparent-proxy.o -lresolv -lnsl
joerg@joerg-desktop:~/freetz-trunk-new/source/target-mipsel_uClibc-0.9.29/tinyproxy-1.8.2/src$
joerg@joerg-desktop:~/freetz-trunk-new/source/target-mipsel_uClibc-0.9.29/tinyproxy-1.8.2/src$ file tinyproxy
tinyproxy: ELF 32-bit LSB executable, MIPS, MIPS32 version 1, dynamically linked (uses shared libs), with unknown capability 0xf41 = 0x756e6700, not stripped
Wenn man jetzt das oben genannte anwendet und "-static" hinzufügt, funktioniert das tatsächlich 
Code:
joerg@joerg-desktop:~/freetz-trunk-new/source/target-mipsel_uClibc-0.9.29/tinyproxy-1.8.2/src$
joerg@joerg-desktop:~/freetz-trunk-new/source/target-mipsel_uClibc-0.9.29/tinyproxy-1.8.2/src$ ~/freetz-trunk-new/toolchain/build/mipsel_gcc-4.4.5_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc -static -DNDEBUG -Os -pipe -march=4kc -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fdiagnostics-show-option -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wfloat-equal -Wundef -Wformat=2 -Wlogical-op -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Waggregate-return -Winit-self -Wpacked --std=c89 -ansi -pedantic -Wc++-compat -Wno-long-long -Wno-overlength-strings -Wdeclaration-after-statement -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-qual -Wcast-align -Wwrite-strings -Wp,-D_FORTIFY_SOURCE=2 -fno-common -Wl,-z,defs -o tinyproxy acl.o anonymous.o buffer.o child.o conf.o conns.o daemon.o hashmap.o heap.o html-error.o http-message.o log.o network.o reqs.o sock.o stats.o text.o main.o utils.o vector.o upstream.o connect-ports.o filter.o reverse-proxy.o transparent-proxy.o -lresolv -lnsl -ldl
joerg@joerg-desktop:~/freetz-trunk-new/source/target-mipsel_uClibc-0.9.29/tinyproxy-1.8.2/src$ file tinyproxy
tinyproxy: ELF 32-bit LSB executable, MIPS, MIPS32 version 1, statically linked, with unknown capability 0xf41 = 0x756e6700, not stripped
joerg@joerg-desktop:~/freetz-trunk-new/source/target-mipsel_uClibc-0.9.29/tinyproxy-1.8.2/src$
Jörg