Skip to content

Commit 75d2a94

Browse files
committed
Update fedora cross build script
1 parent 7e52f1e commit 75d2a94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cross_configs/linux_s390x_fedora42.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
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
76
set(CMAKE_C_COMPILE_OPTIONS_SYSROOT "--sysroot=")
87
set(CMAKE_CXX_COMPILE_OPTIONS_SYSROOT "--sysroot=")
98

@@ -18,3 +17,4 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
1817
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
1918
set(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/")

0 commit comments

Comments
 (0)