public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: media-libs/blend2d/, media-libs/blend2d/files/
@ 2024-11-11  9:48 Golubev Alexander
  0 siblings, 0 replies; only message in thread
From: Golubev Alexander @ 2024-11-11  9:48 UTC (permalink / raw
  To: gentoo-commits

commit:     cd71815a8a56726e63a857b17cf594100757a812
Author:     Alexander Golubev <fatzer2 <AT> gmail <DOT> com>
AuthorDate: Mon Nov 11 09:43:47 2024 +0000
Commit:     Golubev Alexander <fatzer2 <AT> gmail <DOT> com>
CommitDate: Mon Nov 11 09:47:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cd71815a

media-libs/blend2d: avoid adding -O2 to CFLAGS

Closes: https://bugs.gentoo.org/943226
Signed-off-by: Alexander Golubev <fatzer2 <AT> gmail.com>

 ...2d-0.11.4-r1.ebuild => blend2d-0.11.4-r2.ebuild} |  3 +++
 media-libs/blend2d/blend2d-9999.ebuild              |  3 +++
 ...void-adding-O2-to-cflags-gentoo-bug-943226.patch | 21 +++++++++++++++++++++
 3 files changed, 27 insertions(+)

diff --git a/media-libs/blend2d/blend2d-0.11.4-r1.ebuild b/media-libs/blend2d/blend2d-0.11.4-r2.ebuild
similarity index 90%
rename from media-libs/blend2d/blend2d-0.11.4-r1.ebuild
rename to media-libs/blend2d/blend2d-0.11.4-r2.ebuild
index b6d2b3b3c..925e6b0c1 100644
--- a/media-libs/blend2d/blend2d-0.11.4-r1.ebuild
+++ b/media-libs/blend2d/blend2d-0.11.4-r2.ebuild
@@ -24,6 +24,9 @@ RDEPEND="jit? ( >=dev-libs/asmjit-2024.10.25 )"
 DEPEND="${RDEPEND}"
 
 DOCS=( README.md CONTRIBUTING.md )
+PATCHES=(
+	"${FILESDIR}/blend2d-0.11.4-avoid-adding-O2-to-cflags-gentoo-bug-943226.patch"
+)
 
 # see https://github.com/blend2d/blend2d/issues/217
 CMAKE_SKIP_TESTS="bl_test_image_io"

diff --git a/media-libs/blend2d/blend2d-9999.ebuild b/media-libs/blend2d/blend2d-9999.ebuild
index 5f127275a..d94de4e79 100644
--- a/media-libs/blend2d/blend2d-9999.ebuild
+++ b/media-libs/blend2d/blend2d-9999.ebuild
@@ -24,6 +24,9 @@ RDEPEND="jit? ( >=dev-libs/asmjit-2024.10.25 )"
 DEPEND="${RDEPEND}"
 
 DOCS=( README.md CONTRIBUTING.md )
+PATCHES=(
+	"${FILESDIR}/blend2d-0.11.4-avoid-adding-O2-to-cflags-gentoo-bug-943226.patch"
+)
 
 src_configure() {
 	local mycmakeargs=(

diff --git a/media-libs/blend2d/files/blend2d-0.11.4-avoid-adding-O2-to-cflags-gentoo-bug-943226.patch b/media-libs/blend2d/files/blend2d-0.11.4-avoid-adding-O2-to-cflags-gentoo-bug-943226.patch
new file mode 100644
index 000000000..969e076f8
--- /dev/null
+++ b/media-libs/blend2d/files/blend2d-0.11.4-avoid-adding-O2-to-cflags-gentoo-bug-943226.patch
@@ -0,0 +1,21 @@
+Avoid adding -O2 to CFLAGS; gentoo bug #943226
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7372bab..665ed23 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -555,7 +555,6 @@ if ("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC" OR "x${CMAKE_CXX_COMPILER_FRONT
+ 
+   list(APPEND BLEND2D_PRIVATE_CFLAGS_REL
+     -GS-                          # [-] Buffer security-check.
+-    -O2                           # [+] Favor speed over size.
+     -Oi)                          # [+] Generate Intrinsic Functions.
+ 
+   if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+@@ -564,7 +563,6 @@ if ("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC" OR "x${CMAKE_CXX_COMPILER_FRONT
+ elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU|Clang")
+   list(APPEND BLEND2D_PRIVATE_CFLAGS -Wall -Wextra)
+   list(APPEND BLEND2D_PRIVATE_CFLAGS -fno-exceptions -fno-rtti -fno-math-errno)
+-  list(APPEND BLEND2D_PRIVATE_CFLAGS_REL -O2)
+ 
+   if (NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "iOS")
+     # Disable these flags in case somebody uses -ffast-math globally.


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-11  9:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-11  9:48 [gentoo-commits] repo/proj/guru:dev commit in: media-libs/blend2d/, media-libs/blend2d/files/ Golubev Alexander

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox