If a cross-compiled library (built using the cross-ar) is stripped using the host-strip, then the cross-ld wont recognise the library anymore as being for the cross target, e.g.

/nix/store/hz851csk64siwyribnf6c4ki7wyxns4s-binutils-2.17/bin/mips-linux-ld: skipping incompatible /nix/store/80rg2h7r4gv89vnfiw12rfrfggp83v2z-uClibc-0.9.28.3/lib/libc.a when searching for -lc
/nix/store/hz851csk64siwyribnf6c4ki7wyxns4s-binutils-2.17/bin/mips-linux-ld: cannot find -lc

So in cross-compilations, the dontStrip stdenv flag should be set to “true”.

Submitted on 19 March 2007 at 19:03

Log in to post comments