From 0ab9d46fb1b38103a5349564edf150431891ccb45010845c8d47b8d4c3879665 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Mon, 12 May 2025 22:48:42 +0200 Subject: [PATCH] Add support to use a different crt (boo#1243096) By specifying %_mingw32_crt in the obs project config a different c runtime library can be used for building this package. --- mingw32-headers.changes | 8 ++++++++ mingw32-headers.spec | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/mingw32-headers.changes b/mingw32-headers.changes index 36a4030..334e7e9 100644 --- a/mingw32-headers.changes +++ b/mingw32-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 %_mingw32_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/mingw32-headers.spec b/mingw32-headers.spec index 00e191d..a9fe811 100644 --- a/mingw32-headers.spec +++ b/mingw32-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 -%_mingw32_configure --enable-sdk=all --with-default-msvcrt=msvcrt +%_mingw32_configure \ + --enable-sdk=all \ + --with-default-msvcrt=%{?_mingw32_crt:%{_mingw32_crt}}%{!?_mingw32_crt:msvcrt} %make_build %install -- 2.51.1