diff options
author | Marek Szuba <marecki@gentoo.org> | 2023-05-11 12:03:15 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2023-05-11 12:08:32 +0100 |
commit | 5a92ca500789702b63006c70e3662c045289e2f2 (patch) | |
tree | a66aad9c17245a18fe617da521dedb5e2d87c3ef /dev-games/irrlicht-mt | |
parent | net-libs/xrootd: Stabilize 5.5.4-r1 x86, #906127 (diff) | |
download | gentoo-5a92ca500789702b63006c70e3662c045289e2f2.tar.gz gentoo-5a92ca500789702b63006c70e3662c045289e2f2.tar.bz2 gentoo-5a92ca500789702b63006c70e3662c045289e2f2.zip |
dev-games/irrlicht-mt: suppress upstream optimisation/debug compiler flags
Both -O3 and -g is something we leave up to the users to set or not set.
Leave the setting of -mfpmath=sse on x86 be though, upstream has had a
valid reason for enabling this - see
https://github.com/minetest/minetest/issues/11810 .
Closes: https://bugs.gentoo.org/904139
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-games/irrlicht-mt')
-rw-r--r-- | dev-games/irrlicht-mt/files/irrlicht-mt-1.9.0.10-no_upstream_optflags.patch | 12 | ||||
-rw-r--r-- | dev-games/irrlicht-mt/irrlicht-mt-1.9.0.10-r1.ebuild (renamed from dev-games/irrlicht-mt/irrlicht-mt-1.9.0.10.ebuild) | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/dev-games/irrlicht-mt/files/irrlicht-mt-1.9.0.10-no_upstream_optflags.patch b/dev-games/irrlicht-mt/files/irrlicht-mt-1.9.0.10-no_upstream_optflags.patch new file mode 100644 index 000000000000..3fa6884d56f8 --- /dev/null +++ b/dev-games/irrlicht-mt/files/irrlicht-mt-1.9.0.10-no_upstream_optflags.patch @@ -0,0 +1,12 @@ +--- a/source/Irrlicht/CMakeLists.txt ++++ b/source/Irrlicht/CMakeLists.txt +@@ -14,9 +14,6 @@ + set(CMAKE_CXX_STANDARD_REQUIRED ON) + + if(CMAKE_CXX_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang)$") +- set(CMAKE_CXX_FLAGS_RELEASE "-O3") +- set(CMAKE_CXX_FLAGS_DEBUG "-g") +- + add_compile_options(-Wall -pipe -fno-exceptions -fno-rtti) + + # Enable SSE for floating point math on 32-bit x86 by default diff --git a/dev-games/irrlicht-mt/irrlicht-mt-1.9.0.10.ebuild b/dev-games/irrlicht-mt/irrlicht-mt-1.9.0.10-r1.ebuild index 9e3cff77d488..aabef13c265f 100644 --- a/dev-games/irrlicht-mt/irrlicht-mt-1.9.0.10.ebuild +++ b/dev-games/irrlicht-mt/irrlicht-mt-1.9.0.10-r1.ebuild @@ -28,6 +28,10 @@ RDEPEND="~dev-games/irrlicht-mt-headers-${PV} DEPEND="${RDEPEND} x11-base/xorg-proto" +PATCHES=( + "${FILESDIR}"/${PN}-1.9.0.10-no_upstream_optflags.patch +) + S="${WORKDIR}"/${MY_P} src_install() { |