File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- # Bug of cmake not passing sysroot eary enough
2- # https://stackoverflow.com/questions/36195791/cmake-missing-sysroot-when-cross-compiling
3- #
41# This example file is for build on Fedora 42.
52# Search for required packages with `dnf search s390x`
63
4+ # Bug of cmake not passing sysroot early enough
5+ # https://stackoverflow.com/questions/36195791/cmake-missing-sysroot-when-cross-compiling
76set (CMAKE_C_COMPILE_OPTIONS_SYSROOT "--sysroot=" )
87set (CMAKE_CXX_COMPILE_OPTIONS_SYSROOT "--sysroot=" )
98
@@ -18,3 +17,4 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
1817set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
1918set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
2019
20+ set (CMAKE_CROSSCOMPILING_EMULATOR "qemu-s390x-static;-L;/usr/s390x-redhat-linux/sys-root/fc42/usr/" )
You can’t perform that action at this time.
0 commit comments