0
|
1 Cross-compilation of dyncall with gcc
|
|
2 =====================================
|
|
3
|
|
4 Make sure cross-compile tools are installed and in your path, and set the
|
|
5 CC, AR and LD envvars, explicitly (where $PREFIX is arm-eabi, etc., depending
|
|
6 on the toolchain to be used):
|
|
7
|
|
8 $ export CC=$PREFIX-gcc
|
|
9 $ export AR=$PREFIX-ar
|
|
10 $ export LD=$PREFIX-ld
|
|
11
|
|
12 Also set CXX if you want to build the tests:
|
|
13
|
|
14 $ export CXX=$PREFIX-g++
|
|
15
|
|
16
|
|
17 Then, build dyncall - one way would be to simply use Makefile.embedded:
|
|
18
|
|
19 $ make -f Makefile.embedded sun
|
|
20 $ (cd test; make -f Makefile.embedded)
|
|
21
|