[packages/ogre] - no SSE on ix86
baggins
baggins at pld-linux.org
Sun Oct 15 23:03:12 CEST 2023
commit bdee0701a171cec4fe846d8de52a7653c5650cdc
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Oct 15 23:03:00 2023 +0200
- no SSE on ix86
no-sse.patch | 35 +++++++++++++++++++++++++++++++++++
ogre.spec | 4 ++++
2 files changed, 39 insertions(+)
---
diff --git a/ogre.spec b/ogre.spec
index 0fe4df9..cd46b1a 100644
--- a/ogre.spec
+++ b/ogre.spec
@@ -36,6 +36,7 @@ Source1: https://github.com/ocornut/imgui/archive/v1.89.8/imgui-1.89.8.tar.gz
Patch0: %{name}-python.patch
Patch1: x32.patch
Patch2: stringstream.patch
+Patch3: no-sse.patch
URL: https://www.ogre3d.org/
%{?with_samples:BuildRequires: CEGUI-devel}
BuildRequires: FreeImage-devel
@@ -122,6 +123,9 @@ Przykłady do OGRE.
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%ifarch %{ix86}
+%patch3 -p1
+%endif
install -d build
%{__mv} imgui-1.89.8 build/
diff --git a/no-sse.patch b/no-sse.patch
new file mode 100644
index 0000000..724f186
--- /dev/null
+++ b/no-sse.patch
@@ -0,0 +1,35 @@
+--- ogre-14.1.0/CMakeLists.txt~ 2023-09-12 23:35:36.000000000 +0200
++++ ogre-14.1.0/CMakeLists.txt 2023-10-15 22:47:22.466739024 +0200
+@@ -120,17 +120,6 @@
+ set(CMAKE_DEBUG_POSTFIX "_d")
+ endif ()
+
+-# Set compiler specific build flags
+-if (NOT ANDROID AND NOT EMSCRIPTEN AND UNIX OR MINGW)
+- if (CMAKE_SYSTEM_PROCESSOR MATCHES "x86|X86|amd64|AMD64")
+- include(CheckCXXCompilerFlag)
+- check_cxx_compiler_flag(-msse OGRE_GCC_HAS_SSE)
+- if (OGRE_GCC_HAS_SSE)
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse")
+- endif ()
+- endif()
+-endif()
+-
+ if(UNIX)
+ # This is a set of sensible warnings that provide meaningful output
+ set(OGRE_WARNING_FLAGS "-Wall -Winit-self -Wcast-qual -Wwrite-strings -Wextra -Wundef -Wmissing-declarations -Wno-unused-parameter -Wshadow -Wno-missing-field-initializers -Wno-long-long")
+--- ogre-14.1.0/OgreMain/include/OgrePlatformInformation.h~ 2023-09-12 23:35:36.000000000 +0200
++++ ogre-14.1.0/OgreMain/include/OgrePlatformInformation.h 2023-10-15 22:57:14.148733203 +0200
+@@ -34,10 +34,10 @@
+ /* Define whether or not Ogre compiled with SSE support.
+ */
+ #if OGRE_DOUBLE_PRECISION == 0 && OGRE_CPU == OGRE_CPU_X86 && OGRE_COMPILER == OGRE_COMPILER_MSVC
+-# define __OGRE_HAVE_SSE 1
++# define __OGRE_HAVE_SSE 0
+ #elif OGRE_DOUBLE_PRECISION == 0 && OGRE_CPU == OGRE_CPU_X86 && (OGRE_COMPILER == OGRE_COMPILER_GNUC || OGRE_COMPILER == OGRE_COMPILER_CLANG) && \
+ OGRE_PLATFORM != OGRE_PLATFORM_APPLE_IOS
+-# define __OGRE_HAVE_SSE 1
++# define __OGRE_HAVE_SSE 0
+ #endif
+
+ /* Define whether or not Ogre compiled with VFP support.
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ogre.git/commitdiff/bdee0701a171cec4fe846d8de52a7653c5650cdc
More information about the pld-cvs-commit
mailing list