Accepting request 988522 from home:dziobian

- Add Fix-maes-msse41-leaking-into-pkgconfig.patch
  * Do not make programs compiled with abseil require new-ish CPUs.

OBS-URL: https://build.opensuse.org/request/show/988522
OBS-URL: https://build.opensuse.org/package/show/devel:microos/abseil-cpp?expand=0&rev=8
This commit is contained in:
Fabian Vogt 2022-07-12 08:26:10 +00:00 committed by Git OBS Bridge
parent cd977ce8fd
commit c415d8fa54
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Fix for programs depending on abseil getting unexpectedly compiled with -maes -msse4.1 (or equivalent for other platforms), raising the CPU requirement.
--- a/CMake/AbseilHelpers.cmake 2022-06-23 20:22:47.000000000 +0200
+++ b/CMake/AbseilHelpers.cmake 2022-07-11 16:51:58.364596579 +0200
@@ -166,6 +166,8 @@
set(PC_CFLAGS "${PC_CFLAGS} ${cflag}")
elseif(${cflag} MATCHES "^(-W|/w[1234eo])")
# Don't impose our warnings on others.
+ elseif(${cflag} MATCHES "^-m")
+ # Don't impose CPU instruction requirements on others, as the code performs feature detection on runtime.
else()
set(PC_CFLAGS "${PC_CFLAGS} ${cflag}")
endif()

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 11 14:56:15 UTC 2022 - Bruno Pitrus <brunopitrus@hotmail.com>
- Add Fix-maes-msse41-leaking-into-pkgconfig.patch
* Do not make programs compiled with abseil require new-ish CPUs.
-------------------------------------------------------------------
Sun Jul 3 21:25:15 UTC 2022 - Matthias Eliasson <elimat@opensuse.org>

View File

@ -34,6 +34,8 @@ Patch0: options-old.patch
%else
Patch0: options-cxx17.patch
%endif
# PATCH-FIX-UPSTREAM Fix-maes-msse41-leaking-into-pkgconfig.patch
Patch1: Fix-maes-msse41-leaking-into-pkgconfig.patch
%description
Abseil is a collection of C++11 libraries which augment the C++