README: Add instructions to do a cross build

This was on a ubuntu:18.04 system, using their cross build packages and
elfutils and zlib cross built from sources.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2020-08-17 09:52:02 -03:00
parent 9e495f68c6
commit 4cfd420f7e
1 changed files with 7 additions and 0 deletions

7
README.cross Normal file
View File

@ -0,0 +1,7 @@
CC=s390x-linux-gnu-gcc \
cmake -DDWARF_INCLUDE_DIR=/usr/s390x-linux-gnu/include/ \
-DLIBDW_INCLUDE_DIR=/usr/s390x-linux-gnu/include/ \
-DDWARF_LIBRARY=/usr/s390x-linux-gnu/lib/libdw.so.1 \
-DELF_LIBRARY=/usr/s390x-linux-gnu/lib/libelf.so.1 \
-DZLIB_LIBRARY=/usr/s390x-linux-gnu/lib/libz.so.1 \
-DZLIB_INCLUDE_DIR=/usr/s390x-linux-gnu/include/ ..