Skip to content
Snippets Groups Projects

Adopting glm

Merged Andrea Pappacoda requested to merge tachi/glm:debian/master into debian/master
Files
16
Description: Fix FTBFS (unit-tests) with GCC-11
Author: Lukas Märdian <slyon@ubuntu.com>
Origin: vendor, Ubuntu
Instead of fully disabling compiler optimizations, this patch only
disables the problematic optimization, so that if new compiler versions
introduce new incompatible optimizations it will be easy to spot them and
report them upstream.
Bug: https://github.com/g-truc/glm/pull/1087
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/glm/+bug/1946750
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996241
Forwarded: https://github.com/g-truc/glm/pull/1087
Last-Update: 2021-10-12
Bug-Debian: https://bugs.debian.org/996241
Forwarded: https://github.com/g-truc/glm/pull/1087#issuecomment-942299144
Author: Andrea Pappacoda <andrea@pappacoda.it>
Last-Update: 2022-01-23
--- glm.orig/test/CMakeLists.txt
+++ glm/test/CMakeLists.txt
@@ -206,7 +206,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "GN
@@ -14,7 +16,7 @@ Last-Update: 2021-10-12
endif()
- add_compile_options(-O2)
+ add_compile_options(-O0)
+ add_compile_options(-O2 -fno-ipa-modref)
add_compile_options(-Wno-long-long)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Intel")
Loading