dwarves/README.cross
Arnaldo Carvalho de Melo 4cfd420f7e 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>
2020-08-17 09:52:02 -03:00

8 lines
382 B
Plaintext

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/ ..