ezelkow1 wrote:There is usually a -static or --with-static type option in the configure script, as for the actual command you would have to build with I think you can just add -static, but its been a while so that may not be right
and
- Code: Select all
./ configure --enable-static
make LDFLAGS=-static
Is it right?
Lets collect all ways in one place, for future?
What parameters you used while compiling programs?
And lets write short FAQ for compiling and making, for all root filesystems?
Ask you questions!
Let's go:
_______________________________________________________
Compiling and making FAQ:
_______________________________________________________
1. Q: Howto compile you own .c programs (using uclibc toolchain and uclibc root fs)?
A: Copy and unpack toolchain into your PC with Linux. Add /opt/dingoo-uclib-toolchain_dir/usr/bin to you $PATH.
Then go to folder with you own test.c file, and do next:
- Code: Select all
mipsel-linux-gcc -o test test.c
or
- Code: Select all
mipsel-linux-cc -o test test.c
Copy ready test file, and type ./test on you dingoo linux.