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:
parent
9e495f68c6
commit
4cfd420f7e
|
@ -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/ ..
|
Loading…
Reference in New Issue