From: Bruno Pitrus Date: Sun, 8 Jan 2023 21:54:44 +0000 (+0000) Subject: Do not leak -maes -msse4.1 into pkgconfig X-Git-Tag: archive/raspbian/20220623.1-1+rpi1+deb12u2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8dbafd54af2969c38919550d972db1480d211ec3;p=abseil.git Do not leak -maes -msse4.1 into pkgconfig Forwarded: https://github.com/abseil/abseil-cpp/pull/1216 Origin: upstream, https://github.com/abseil/abseil-cpp/commit/09e96049995584c3489e4bd1467313e3e85af99c Gbp-Pq: Name leaky-pkgconfig-cflags.diff --- diff --git a/CMake/AbseilHelpers.cmake b/CMake/AbseilHelpers.cmake index 6b6613f..0fe2c0a 100644 --- a/CMake/AbseilHelpers.cmake +++ b/CMake/AbseilHelpers.cmake @@ -166,6 +166,8 @@ function(absl_cc_library) 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()