summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2019-09-12 09:01:50 +0200
committerTupone Alfredo <tupone@gentoo.org>2019-09-12 09:01:50 +0200
commitac0397adc5b4ddfc44e26de96c743f2e54a7a91a (patch)
treef7ab1203573ee30b7f02b67949bd84d39a41b4a0 /media-libs/glm
parentsci-mathematics/alt-ergo: fix BadInsIntoDir warning (diff)
downloadgentoo-ac0397adc5b4ddfc44e26de96c743f2e54a7a91a.tar.gz
gentoo-ac0397adc5b4ddfc44e26de96c743f2e54a7a91a.tar.bz2
gentoo-ac0397adc5b4ddfc44e26de96c743f2e54a7a91a.zip
media-libs/glm: disable SSE2
Closes: https://bugs.gentoo.org/693954 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'media-libs/glm')
-rw-r--r--media-libs/glm/files/glm-0.9.9.6-simd.patch11
-rw-r--r--media-libs/glm/glm-0.9.9.6.ebuild2
2 files changed, 13 insertions, 0 deletions
diff --git a/media-libs/glm/files/glm-0.9.9.6-simd.patch b/media-libs/glm/files/glm-0.9.9.6-simd.patch
new file mode 100644
index 000000000000..5ed2bf1f6d65
--- /dev/null
+++ b/media-libs/glm/files/glm-0.9.9.6-simd.patch
@@ -0,0 +1,11 @@
+--- a/glm/simd/platform.h 2019-03-06 18:57:53.309630574 +0100
++++ b/glm/simd/platform.h 2019-03-06 18:58:30.796988006 +0100
+@@ -245,7 +245,7 @@
+
+ #define GLM_ARCH_NEON_BIT (0x00000001)
+ #define GLM_ARCH_SSE_BIT (0x00000002)
+-#define GLM_ARCH_SSE2_BIT (0x00000004)
++#define GLM_ARCH_SSE2_BIT (0x00000000)
+ #define GLM_ARCH_SSE3_BIT (0x00000008)
+ #define GLM_ARCH_SSSE3_BIT (0x00000010)
+ #define GLM_ARCH_SSE41_BIT (0x00000020)
diff --git a/media-libs/glm/glm-0.9.9.6.ebuild b/media-libs/glm/glm-0.9.9.6.ebuild
index 89d9894cf71e..7049a117fce1 100644
--- a/media-libs/glm/glm-0.9.9.6.ebuild
+++ b/media-libs/glm/glm-0.9.9.6.ebuild
@@ -16,6 +16,8 @@ IUSE="test cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_avx cpu_flags_x86
RDEPEND="virtual/opengl"
+PATCHES=( "${FILESDIR}"/${P}-simd.patch )
+
src_prepare() {
cmake-utils_src_prepare
sed \