Index: test-suite/trunk/MultiSource/Benchmarks/VersaBench/dbms/CMakeLists.txt =================================================================== --- test-suite/trunk/MultiSource/Benchmarks/VersaBench/dbms/CMakeLists.txt +++ test-suite/trunk/MultiSource/Benchmarks/VersaBench/dbms/CMakeLists.txt @@ -5,6 +5,7 @@ set(LEVEL ../../../..) set(PROG dbms) +list(APPEND LDFLAGS -lm) if(DEFINED SMALL_PROBLEM_SIZE) set(RUN_OPTIONS -i ${CMAKE_CURRENT_SOURCE_DIR}/dbms.train.in) else() Index: test-suite/trunk/MultiSource/Benchmarks/nbench/CMakeLists.txt =================================================================== --- test-suite/trunk/MultiSource/Benchmarks/nbench/CMakeLists.txt +++ test-suite/trunk/MultiSource/Benchmarks/nbench/CMakeLists.txt @@ -6,7 +6,7 @@ set(LEVEL ../../..) set(PROG nbench) set(CPPFLAGS -DBASE_ITERATIONS=25) -set(LDFLAGS ) +set(LDFLAGS -lm) if("${ARCH}" STREQUAL "XCore") set(RUNTIMELIMIT 7200) else() Index: test-suite/trunk/SingleSource/CMakeLists.txt =================================================================== --- test-suite/trunk/SingleSource/CMakeLists.txt +++ test-suite/trunk/SingleSource/CMakeLists.txt @@ -8,7 +8,6 @@ if(NOT DEFINED BENCHMARKING_ONLY) list(APPEND PARALLEL_DIRS UnitTests) endif() -list(APPEND LDFLAGS -lm) llvm_singlesource() llvm_add_subdirectories(${DIRS} ${PARALLEL_DIRS}) Index: test-suite/trunk/SingleSource/Regression/C/CMakeLists.txt =================================================================== --- test-suite/trunk/SingleSource/Regression/C/CMakeLists.txt +++ test-suite/trunk/SingleSource/Regression/C/CMakeLists.txt @@ -12,6 +12,7 @@ if(DEFINED BENCHMARKING_ONLY) list(APPEND PROGRAMS_TO_SKIP 2003-05-14-initialize-string 2003-05-21-BitfieldHandling 2003-05-21-UnionBitfields 2003-05-21-UnionTest 2003-05-22-LocalTypeTest 2003-05-22-VarSizeArray 2003-05-23-TransparentUnion 2003-06-16-InvalidInitializer 2003-06-16-VolatileError 2003-10-12-GlobalVarInitializers 2004-02-03-AggregateCopy 2004-03-15-IndirectGoto 2005-05-06-LongLongSignedShift 2008-01-07-LongDouble badidx bigstack callargs casts compare ConstructorDestructorAttributes DuffsDevice globalrefs matrixTranspose pointer_arithmetic PR10189 PR1386 PR491 PR640 sumarray sumarray2d sumarraymalloc test_indvars testtrace) endif() +list(APPEND LDFLAGS -lm) llvm_singlesource() llvm_add_subdirectories(${DIRS} ${PARALLEL_DIRS}) Index: test-suite/trunk/cmake/modules/SingleMultiSource.cmake =================================================================== --- test-suite/trunk/cmake/modules/SingleMultiSource.cmake +++ test-suite/trunk/cmake/modules/SingleMultiSource.cmake @@ -180,7 +180,6 @@ append_cflags(${source_exename} CPPFLAGS) append_cflags(${source_exename} CXXFLAGS) append_ldflags(${source_exename} LDFLAGS) - target_link_libraries(${source_exename} -lm) llvm_add_test(${PROG} ${source_exename}) add_dependencies(${source_exename} timeit timeit-target fpcmp) endif()