[packages/crossmingw32-runtime] - fix for abort() being defined as macro before <stdlib.h> inclusion (e.g. gcc 12 build); release 3
qboosh
qboosh at pld-linux.org
Sun Apr 27 21:45:08 CEST 2025
commit b2307acefff07a35d80a980fcdc8d150b7b768d4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Apr 27 21:39:01 2025 +0200
- fix for abort() being defined as macro before <stdlib.h> inclusion (e.g. gcc 12 build); release 3
crossmingw32-runtime-macro.patch | 14 ++++++++++++++
crossmingw32-runtime.spec | 4 +++-
2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/crossmingw32-runtime.spec b/crossmingw32-runtime.spec
index 33a2b1a..fc7d115 100644
--- a/crossmingw32-runtime.spec
+++ b/crossmingw32-runtime.spec
@@ -2,7 +2,7 @@ Summary: MinGW32 Binary Utility Development Utilities - runtime libraries
Summary(pl.UTF-8): Zestaw narzędzi MinGW32 - biblioteki uruchomieniowe
Name: crossmingw32-runtime
Version: 5.4.2
-Release: 2
+Release: 3
Epoch: 1
License: BSD-like
Group: Development/Libraries
@@ -14,6 +14,7 @@ Patch1: %{name}-stdinc.patch
Patch2: %{name}-oldlib.patch
Patch3: %{name}-memalign-includes.patch
Patch4: %{name}-ptw32.patch
+Patch5: %{name}-macro.patch
URL: https://osdn.net/projects/mingw/
BuildRequires: autoconf >= 2.68
BuildRequires: automake
@@ -85,6 +86,7 @@ dos2unix Makefile.in configure.ac */Makefile.in
%patch -P2 -p1
%patch -P3 -p1
%patch -P4 -p1
+%patch -P5 -p1
%build
cp -p %{_includedir}/w32api.h w32api.h.in
diff --git a/crossmingw32-runtime-macro.patch b/crossmingw32-runtime-macro.patch
new file mode 100644
index 0000000..b45e19d
--- /dev/null
+++ b/crossmingw32-runtime-macro.patch
@@ -0,0 +1,14 @@
+--- mingwrt-5.4.2/include/stdlib.h.orig 2025-04-27 21:32:04.080344089 +0200
++++ mingwrt-5.4.2/include/stdlib.h 2025-04-27 21:34:26.189574218 +0200
+@@ -541,7 +541,11 @@ _CRTIMP __cdecl __MINGW_NOTHROW int ran
+ #endif /* Win-Vista || MSVCR80.DLL || later */
+ #endif /* _CRT_RAND_S enabled */
+
++#pragma push_macro("abort")
++#undef abort
+ _CRTIMP __cdecl __MINGW_NOTHROW void abort (void) __MINGW_ATTRIB_NORETURN;
++#pragma pop_macro("abort")
++
+ _CRTIMP __cdecl __MINGW_NOTHROW void exit (int) __MINGW_ATTRIB_NORETURN;
+
+ /* Note: this is in startup code, not imported directly from the runtime DLL
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crossmingw32-runtime.git/commitdiff/b2307acefff07a35d80a980fcdc8d150b7b768d4
More information about the pld-cvs-commit
mailing list