cross-compile the SSH of mipsel-linux platform
hi, everyone.
I make a cross compiler of mipsel-linux , and my applications are all compiled statically to link the libraries. In this way, I found that some functions (getwuid(), getpwnam(), gethostbyname, and so on) are at runtime the shared libraries from the glibc version used for linking. So that these functions are unusefull when I run the application(SSH) which application uses these functions a lot more! Now, I only have two ways to solve this question: one: I turnoff these functions, and set the relational value of these functions. second: I must rebuild a static cross compiler . But I don't think it is a good idea. Do you have a problem the same as mime? Or do you have a better way to solve this problem? Please share it with me . Thank you! |
I think, you will have to rebuild the "mipsel-gcc" with headers
from the libc used on your target. And if some kernel headers are required, when building gcc, then include headers from the target kernel source. Ref.: http://www.gnuarm.com/ Please look for the word ' here ' , which is a link. cd [gcc-build] [gcc-source]/configure --target=<mipsel..> --prefix=[toolchain-prefix] \ --enable-interwork --enable-multilib --enable-languages="c,c++" \ --with-headers=[libc-source]/libc/include ( .. .. and : --with-headers=[kernel-source]/linux-2.x.xx.x/include/ ) The option '--with-headers= ' excludes the system path, no headers from /usr/include/, etc. will be used. ..... |
And please have a look at post # 4 here
http://www.linuxquestions.org/questi...onment-732675/ ... About crosstool-ng http://ymorin.is-a-geek.org/dokuwiki/projects/crosstool ..... |
All times are GMT -5. The time now is 06:14 AM. |