|
From: Mogens L. L. <ML...@ba...> - 2009-10-09 11:10:46
|
I build valgrind for PPC using cross compiler like this:
#*****************
export location=$(pwd)
export
TARGET_TOOL_BASE=/opt/wrsysroot/x86-linux2/powerpc-wrs-linux-gnu-ppc_603e-glibc_small-
export CC=${TARGET_TOOL_BASE}gcc
export CXX=${TARGET_TOOL_BASE}g++
export LD=${TARGET_TOOL_BASE}ld
svn co svn://svn.valgrind.org/valgrind/trunk valgrind
cd valgrind
./autogen.sh
./configure --prefix=${location}/install_svn_debug --enable-shared
--host=ppc-linux --target=ppc-linux --enable-debug --disable-tls || exit 1
make || exit 1
make install || exit 1
#***************
This are probably other/betters ways, but this works for me :-)
/Mogens
Bart Van Assche <bar...@gm...>
09-10-2009 12:07
To
Brandon Rioja <br...@co...>
cc
"val...@li..."
<val...@li...>
Subject
Re: [Valgrind-users] Montavista cross compilation
On Thu, Oct 8, 2009 at 10:00 PM, Brandon Rioja <br...@co...>
wrote:
> I get an error when trying to compile to montavista.
>
> I'm using this command line argument:
>
> ./configure --host=ppc-linux --build=x86_64-linux CXX=ppc_85xx-g++
AR=ppc_85xx-ar CC=ppc_85xx-gcc --disable-tls
> [ ... ]
Cross-compilation of Valgrind works fine for other Valgrind users, so
there is probably something wrong with the above command line.
Bart.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Valgrind-users mailing list
Val...@li...
https://lists.sourceforge.net/lists/listinfo/valgrind-users
|