rpm/canongnu.diff

33 lines
997 B
Diff

--- CMakeLists.txt.orig 2024-10-07 09:35:46.000000000 +0000
+++ CMakeLists.txt 2024-12-16 09:42:51.221054406 +0000
@@ -153,14 +153,26 @@ function(makemacros)
list(GET db_backends 0 DB_BACKEND)
- set(host_cpu ${CMAKE_HOST_SYSTEM_PROCESSOR})
+ if (RPM_HOST_SYSTEM_CPU)
+ set(host_cpu ${RPM_HOST_SYSTEM_CPU})
+ else()
+ set(host_cpu ${CMAKE_HOST_SYSTEM_PROCESSOR})
+ endif()
string(TOLOWER ${CMAKE_HOST_SYSTEM_NAME} host_os)
set(host_vendor ${RPM_VENDOR})
- set(host ${host_cpu}-${host_vendor}-${host_os})
+ if (RPM_HOST_SYSTEM_ABI)
+ set(host ${host_cpu}-${host_vendor}-${host_os}-${RPM_HOST_SYSTEM_ABI})
+ else()
+ set(host ${host_cpu}-${host_vendor}-${host_os})
+ endif()
set(RPMCANONVENDOR ${host_vendor})
set(RPMCANONOS ${host_os})
- set(RPMCANONGNU -gnu)
+ if (RPM_HOST_SYSTEM_ABI)
+ set(RPMCANONGNU -${RPM_HOST_SYSTEM_ABI})
+ else()
+ set(RPMCANONGNU -gnu)
+ endif()
configure_file(platform.in platform @ONLY)
configure_file(rpmrc.in rpmrc @ONLY)