From 6fc2bce09447d9d7c09b32d1b87a1642f94cbf5f587b7230550f188781179a2f Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Mon, 12 May 2025 22:39:59 +0200 Subject: [PATCH] Add support to use a different crt (boo#1243096) By specifying %_mingw64_crt in the obs project config a different c runtime library can be used for building this package. --- mingw64-headers.changes | 8 ++++++++ mingw64-headers.spec | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/mingw64-headers.changes b/mingw64-headers.changes index 36a4030..a387421 100644 --- a/mingw64-headers.changes +++ b/mingw64-headers.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon May 12 20:26:43 UTC 2025 - Ralf Habacker + +- Add support to use a different crt (boo#1243096) + By specifying %_mingw64_crt in the obs project config + a different c runtime library can be used for building this + package. + ------------------------------------------------------------------- Mon Oct 7 10:21:51 UTC 2024 - Jan Engelhardt diff --git a/mingw64-headers.spec b/mingw64-headers.spec index cbb204d..ddd6027 100644 --- a/mingw64-headers.spec +++ b/mingw64-headers.spec @@ -54,7 +54,9 @@ an actual pthread implementation (like winpthreads) is installed. %autosetup -n mingw-w64-v%version/mingw-w64-headers -p2 %build -%_mingw64_configure --enable-sdk=all --with-default-msvcrt=msvcrt +%_mingw64_configure \ + --enable-sdk=all \ + --with-default-msvcrt=%{?_mingw64_crt:%{_mingw64_crt}}%{!?_mingw64_crt:msvcrt} %make_build %install -- 2.51.1