You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but when i run the command: make programs, still using the CC instead of arm-linux-gcc, build log:
root@ubuntu:/home/jli/code_test/trunk/apps/Openswan-2.6.52# make programs OBJDIR: OBJ.linux.i386
(cd /home/jli/code_test/trunk/apps/Openswan-2.6.52/OBJ.linux.i386 && OBJDIRTOP=/home/jli/code_test/trunk/apps/Openswan-2.6.52/OBJ.linux.i386 OBJDIR=/home/jli/code_test/trunk/apps/Openswan-2.6.52/OBJ.linux.i386 make programs )
make[1]: Entering directory /home/jli/code_test/trunk/apps/Openswan-2.6.52/OBJ.linux.i386' make[2]: Entering directory /home/jli/code_test/trunk/apps/Openswan-2.6.52/OBJ.linux.i386/lib'
make[3]: Entering directory `/home/jli/code_test/trunk/apps/Openswan-2.6.52/OBJ.linux.i386/lib/libopenswan'
CC addrtoa.c
CC addrtot.c
CC addrtypeof.c
CC alg_info.c
CC anyaddr.c
CC atoaddr.c
CC atoasr.c
CC atosubnet.c
CC atoul.c
CC constants.c
CC copyright.c
CC datatot.c
CC alloc.c
..........
Could you tell me the detail steps of cross compilation? thanks in advance.
The text was updated successfully, but these errors were encountered:
Hello,
I want to cross-compilation the openswan, an i have updated the CROSSCOMPILE.sh as below:
**#!/bin/bash
cross compile example
#export PREFIX=/volquad/arm-4.0.2
export PREFIX=/opt/iproc/buildroot/host/usr
export DESTDIR=/tmp/openswan.arm
echo $PREFIX
export ARCH=arm
export CC=$PREFIX/bin/arm-linux-gcc
export GCC=$PREFIX/bin/arm-linux-gcc
export LD=$PREFIX/bin/arm-linux-ld
export RANLIB=$PREFIX/bin/arm-linux-ranlib
export AR=$PREFIX/bin/arm-linux-ar
export AS=$PREFIX/bin/arm-linux-as
export STRIP=$PREFIX/bin/arm-linux-strip
export LD_LIBRARY_PATH=$PREFIX/lib/
export PATH=$PATH:$PREFIX/bin
export USERCOMPILE="-Wl,-elf2flt -DCOMPILER_HAS_NO_PRINTF_LIKE -O3 -g ${PORTDEFINE} -I$PREFIX/arm-elf/inc -L$PREFIX/lib/gcc-lib -DGCC_LINT -DLEAK_DETECTIVE -Dlinux -D__linux__"
export WERROR=' '**
but when i run the command: make programs, still using the CC instead of arm-linux-gcc, build log:
root@ubuntu:/home/jli/code_test/trunk/apps/Openswan-2.6.52# make programs
OBJDIR: OBJ.linux.i386
(cd /home/jli/code_test/trunk/apps/Openswan-2.6.52/OBJ.linux.i386 && OBJDIRTOP=/home/jli/code_test/trunk/apps/Openswan-2.6.52/OBJ.linux.i386 OBJDIR=/home/jli/code_test/trunk/apps/Openswan-2.6.52/OBJ.linux.i386 make programs )
make[1]: Entering directory
/home/jli/code_test/trunk/apps/Openswan-2.6.52/OBJ.linux.i386' make[2]: Entering directory
/home/jli/code_test/trunk/apps/Openswan-2.6.52/OBJ.linux.i386/lib'make[3]: Entering directory `/home/jli/code_test/trunk/apps/Openswan-2.6.52/OBJ.linux.i386/lib/libopenswan'
CC addrtoa.c
CC addrtot.c
CC addrtypeof.c
CC alg_info.c
CC anyaddr.c
CC atoaddr.c
CC atoasr.c
CC atosubnet.c
CC atoul.c
CC constants.c
CC copyright.c
CC datatot.c
CC alloc.c
..........
Could you tell me the detail steps of cross compilation? thanks in advance.
The text was updated successfully, but these errors were encountered: