diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-03-25 13:55:24 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-03-25 13:55:24 +0000 |
| commit | 5753bda242dd849249cb183ec4d2e7cbd8b6d9b1 (patch) | |
| tree | a45873ead0f843d7cdc8c62bb8cac43f059f3bba /disable-lto.patch | |
| parent | 704c695941ce4ba4317b8e5a91f6f84dd20e8dd3 (diff) | |
automatic import of librealsense2
Diffstat (limited to 'disable-lto.patch')
| -rw-r--r-- | disable-lto.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/disable-lto.patch b/disable-lto.patch new file mode 100644 index 0000000..3cb487f --- /dev/null +++ b/disable-lto.patch @@ -0,0 +1,13 @@ +diff --git a/CMake/unix_config.cmake b/CMake/unix_config.cmake +index b496cf0..f5383d4 100644 +--- a/CMake/unix_config.cmake ++++ b/CMake/unix_config.cmake +@@ -21,7 +21,7 @@ macro(os_set_flags) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -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 "arm-*") + |
