On Saturday 21 October 2006 01:34, Dr. Stephen Henson wrote: > BTW on the subject of cross compiling what are the thoughts on > making this easier by adding a command line option to Configure > which inserts a prefix to the relevant compiler tools?
Hello, Tried to use the new cross of openssl-SNAP-20061223. With: mingw32-gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3) I used: ./Configure --prefix=// --cross-compile-prefix=mingw32- mingw I had to remove EXPORT_VAR_AS_FN form mingw configuration in order to make the static compile. Please also notice that --prefix must receive TWO slashes in order to install to root (make install INSTALL_PREFIX=/tmp/w32)... Maybe this also can be corrected. I could not make the shared configuration work: ./Configure --prefix=// --cross-compile-prefix=mingw32- shared mingw The ec stuff does not compile on shared configuration. mingw32-gcc -I.. -I../.. -I../asn1 -I../evp -I../../include -D_WINDLL -DOPENSSL_USE_APPLINK -DOPENSSL_PIC -DOPENSSL_THREADS -DDSO_WIN32 -mno-cygwin -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DWHIRLPOOL_ASM -c -o ec_asn1.o ec_asn1.c ec_asn1.c:200: error: initializer element is not constant ec_asn1.c:200: error: (near initialization for ‘X9_62_PENTANOMIAL_seq_tt[0].item’) ec_asn1.c:201: error: initializer element is not constant ec_asn1.c:201: error: (near initialization for ‘X9_62_PENTANOMIAL_seq_tt[1].item’) ec_asn1.c:202: error: initializer element is not constant ec_asn1.c:202: error: (near initialization for ‘X9_62_PENTANOMIAL_seq_tt[2].item’) ec_asn1.c:208: error: initializer element is not constant ec_asn1.c:208: error: (near initialization for ‘char_two_def_tt.item’) ec_asn1.c:211: error: initializer element is not constant <snip> Maybe I am doing this wrong? Best Regards, Alon Bar-Lev. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]