diff --git a/router/CMakeLists.txt b/router/CMakeLists.txt index 1c1988c762b9..0a4387a74c9f 100644 --- a/router/CMakeLists.txt +++ b/router/CMakeLists.txt @@ -21,19 +21,6 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# Fix "undefined reference to '__muloti4'" for clang-7 or older -# https://stackoverflow.com/questions/49793632/clang-fsanitize-undefined-with-128-integer-operations-undefined-reference-to -IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8) - STRING_APPEND(CMAKE_CXX_LINK_FLAGS " --rtlib=compiler-rt -lgcc_s") -ENDIF() - -# Disable ld.gold for clang-7 and clang-8 -IF(USE_LD_LLD AND CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND - NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0) - STRING(REPLACE "-fuse-ld=gold" "" CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS}") - STRING(REPLACE "-fuse-ld=gold" "" CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS}") -ENDIF() - INCLUDE(cmake/version.cmake) SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}