diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-04-09 02:15:02 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-04-09 02:15:02 +0000 |
| commit | 98091c482748771bf5cfce7a6f34c030680385b0 (patch) | |
| tree | 4fa8858e6562dec374b6f3ea5ebe3a0828c5cc10 /disable-lto.patch | |
| parent | 8386d21312bf758fb2d038c81e3be3bd19f80c9c (diff) | |
automatic import of ros-humble-librealsense2
Diffstat (limited to 'disable-lto.patch')
| -rw-r--r-- | disable-lto.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/disable-lto.patch b/disable-lto.patch new file mode 100644 index 0000000..0486b1f --- /dev/null +++ b/disable-lto.patch @@ -0,0 +1,20 @@ +--- + CMake/unix_config.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMake/unix_config.cmake b/CMake/unix_config.cmake +index 554e961..8865c9e 100644 +--- a/CMake/unix_config.cmake ++++ b/CMake/unix_config.cmake +@@ -33,7 +33,7 @@ macro(os_set_flags) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mstrict-align -ftree-vectorize -march=rv64ifd") + else() + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mssse3") +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mssse3") ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mssse3 -flto") + set(LRS_TRY_USE_AVX true) + endif(${MACHINE} MATCHES "arm64-*" OR ${MACHINE} MATCHES "aarch64-*") + +-- +2.34.1 + |
