Hello,
I want to compile openssl in a shared version for friendly arm (a linux
based embedded system)
When I run the script below
#!/bin/sh
export CROSS_COMPILE=arm-none-linux-gnueabi-
export CC=${CROSS_COMPILE}"gcc"
export CXX=${CROSS_COMPILE}"g++"
export AR=${CROSS_COMPILE}"ar"
export AS=${CROSS_COMPILE}"as"
export RANLIB=${CROSS_COMPILE}"ranlib"
export LD=${CROSS_COMPILE}"ld"
export STRIP=${CROSS_COMPILE}"strip"
./config linux-armv4 shared no-hw no-asm DL_ENDIAN --prefix
arm-none-linux-gnueabi-
make
it starts to compile it for X86 processors ignoring the linux-armv4
directive and the other directives too.
Operating system: i686-whatever-linux2
Configuring for linux-elf
target already defined - linux-elf (offending arg: linux-armv4)
making all in crypto...
make[1]: Entering directory
`/opt/FriendlyARM/mini6410/linux/arm-qte-4.7everywhere-opensource-src-4.7.0/
examples/openssl-1.0.0e/crypto'
( echo "#ifndef MK1MF_BUILD"; \
echo ' /* auto-generated by crypto/Makefile for crypto/cversion.c */';
echo ' #define CFLAGS "gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
-DLFCN_H -march=pentium -Wa,--noexecstack -DL_ENDIAN -DTERMIO -O3
-fomit-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2
-DOPENSSL__MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM
-DAES_WHIRLPOOL_ASM"'; \
I think:" target already defined - linux-elf (offending arg: linux-armv4)"
is a bug! The default i686 configuration is now overwritten...
Best regards
Wolfram Podien