I finally solve the problem adding an option that recompiles all the sources, but now I can't run the program compiled with glibc in my OpenWRT firmware, I suppose because it uses uClibc.
I run the file command for my program and the result is:
Code:
ELF 32-bit MSB executable, MIPS, MIPS32 rel 2 version 1, dynamically linked (uses shared libs), for GNU/Linux 2.4.0, with unknown capability 0x41000000=0xf676e75, not stripped
Some questions:
Why it is compiled for GNU/Linux 2.4.0, this is not my version, where I choose that parameter?
I read it is possible to run a program compiled with glibc in OpenWrt with uClibc if you compile statically, adding --static to CFLAGS, why doesn't work that?