Hello, I'm trying to cross-compile NSS for armv5, glibc 2.8, and Linux 2.6. I know this is an old platform, but it seems like it's almost working.
I've had to modify the coreconf/Linux.mk and coreconf/arch.mk files to specify the target architecture and kernel version, and use a special build command: make CROSS_COMPILE=1 BUILD_OPT=1 NSPR_INCLUDE_DIR=/home/wmt/nas-sysroot/usr/local/include/nspr/ USE_SYSTEM_ZLIB=1 ZLIB_LIBS=-lz CC="arm-unknown-linux-gnueabi-gcc --sysroot=/home/wmt/nas-sysroot" CXX="arm-unknown-linux-gnueabi-g++ --sysroot=/home/wmt/nas-sysroot" LD="arm-unknown-linux-gnueabi-ld --sysroot=/home/wmt/nas-sysroot" DEFAULT_COMPILER="arm-unknown-linux-gnueabi-gcc --sysroot=/home/wmt/nas-sysroot" It seems like this very nearly works, but it fails with: Linux2.6_arm_glibc_PTH_DBG.OBJ/pkcs11.o: In function `nsc_CommonInitialize': /home/wmt/Downloads/nss-3.25.1/nss/lib/softoken/pkcs11.c:3022: undefined reference to `pthread_atfork' collect2: error: ld returned 1 exit status I'm wondering if there is a better way to cross compile. I've had difficulty finding instructions, but this is definitely a hacky way to achieve it. I would appreciate any advice anyone has to offer with this - I'm pretty stumped at the moment. Hamish -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto