Mercurial > pub > dyncall > dyncall
diff doc/README-Cross.txt @ 0:3e629dc19168
initial from svn dyncall-1745
author | Daniel Adler |
---|---|
date | Thu, 19 Mar 2015 22:24:28 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/README-Cross.txt Thu Mar 19 22:24:28 2015 +0100 @@ -0,0 +1,21 @@ +Cross-compilation of dyncall with gcc +===================================== + +Make sure cross-compile tools are installed and in your path, and set the +CC, AR and LD envvars, explicitly (where $PREFIX is arm-eabi, etc., depending +on the toolchain to be used): + + $ export CC=$PREFIX-gcc + $ export AR=$PREFIX-ar + $ export LD=$PREFIX-ld + +Also set CXX if you want to build the tests: + + $ export CXX=$PREFIX-g++ + + +Then, build dyncall - one way would be to simply use Makefile.embedded: + + $ make -f Makefile.embedded sun + $ (cd test; make -f Makefile.embedded) +