Index: test-suite/trunk/External/SPEC/CFP2000/CMakeLists.txt =================================================================== --- test-suite/trunk/External/SPEC/CFP2000/CMakeLists.txt +++ test-suite/trunk/External/SPEC/CFP2000/CMakeLists.txt @@ -1,3 +1,4 @@ +list(APPEND LDFLAGS -lm) list(APPEND CPPFLAGS -DSPEC_CPU2000) if(CMAKE_SIZEOF_VOID_P EQUAL 8) list(APPEND CPPFLAGS -DSPEC_CPU2000_LP64) Index: test-suite/trunk/External/SPEC/CINT2000/252.eon/CMakeLists.txt =================================================================== --- test-suite/trunk/External/SPEC/CINT2000/252.eon/CMakeLists.txt +++ test-suite/trunk/External/SPEC/CINT2000/252.eon/CMakeLists.txt @@ -1,9 +1,10 @@ -list(APPEND CPPFLAGS -include errno.h -DHAS_ERRLIST -DUSE_STRERROR -DSPEC_STDCPP) +list(APPEND CPPFLAGS -include errno.h -include string.h -DHAS_ERRLIST -DUSE_STRERROR -DSPEC_STDCPP) if(ARCH STREQUAL "PowerPC") list(APPEND CPPFLAGS -DFMAX_IS_DOUBLE) endif() list(APPEND CXXFLAGS -fno-exceptions -Wno-deprecated -fpermissive) list(APPEND LDFLAGS -lm) + include_directories(${BENCHMARK_DIR}/src) # There's more sourcefiles in the directory than necessary so enumerate the ones Index: test-suite/trunk/External/SPEC/CINT2000/253.perlbmk/CMakeLists.txt =================================================================== --- test-suite/trunk/External/SPEC/CINT2000/253.perlbmk/CMakeLists.txt +++ test-suite/trunk/External/SPEC/CINT2000/253.perlbmk/CMakeLists.txt @@ -31,6 +31,10 @@ MD5.c md5c.c ) + +list(APPEND CPPFLAGS -DSPEC_CPU2000_NEED_BOOL) +list(APPEND LDFLAGS -lm) + if(TARGET_OS STREQUAL "Win32") list(APPEND SourceNames nt_perlmain.c win32.c win32sck.c perllib.c) list(APPEND CPPFLAGS -DSPEC_CPU2000_NTOS -DWIN32 -D_CONSOLE) @@ -40,6 +44,7 @@ list(APPEND SourceNames unix_perlmain.c) list(APPEND CPPFLAGS -DSPEC_CPU2000_LINUX) endif() +list(APPEND CPPFLAGS -std=gnu89) include(TestBigEndian) test_big_endian(IS_BIGENDIAN) Index: test-suite/trunk/External/SPEC/CINT2000/255.vortex/CMakeLists.txt =================================================================== --- test-suite/trunk/External/SPEC/CINT2000/255.vortex/CMakeLists.txt +++ test-suite/trunk/External/SPEC/CINT2000/255.vortex/CMakeLists.txt @@ -1,3 +1,5 @@ +list(APPEND LDFLAGS -lm) + macro(test_input run_type input outfile) llvm_test_run(RUN_TYPE ${run_type} WORKDIR ${CMAKE_CURRENT_BINARY_DIR}/data/${run_type}/input Index: test-suite/trunk/External/SPEC/CINT2000/300.twolf/CMakeLists.txt =================================================================== --- test-suite/trunk/External/SPEC/CINT2000/300.twolf/CMakeLists.txt +++ test-suite/trunk/External/SPEC/CINT2000/300.twolf/CMakeLists.txt @@ -1,3 +1,4 @@ +list(APPEND CPPFLAGS -DHAVE_SIGNED_CHAR) list(APPEND LDFLAGS -lm) list(APPEND CFLAGS -Wno-return-type) Index: test-suite/trunk/External/SPEC/CINT2006/400.perlbench/CMakeLists.txt =================================================================== --- test-suite/trunk/External/SPEC/CINT2006/400.perlbench/CMakeLists.txt +++ test-suite/trunk/External/SPEC/CINT2006/400.perlbench/CMakeLists.txt @@ -2,6 +2,7 @@ list(APPEND CFLAGS -std=gnu89) # We want reproducible builds list(APPEND CPPFLAGS -D__DATE__="XXX" -D__TIME__="XXX") +list(APPEND LDFLAGS -lm) include_directories(${BENCHMARK_DIR}/src) Index: test-suite/trunk/External/SPEC/CINT2006/445.gobmk/CMakeLists.txt =================================================================== --- test-suite/trunk/External/SPEC/CINT2006/445.gobmk/CMakeLists.txt +++ test-suite/trunk/External/SPEC/CINT2006/445.gobmk/CMakeLists.txt @@ -1,4 +1,5 @@ list(APPEND CPPFLAS -DWANT_STDC_PROTO) +list(APPEND LDFLAGS -lm) set(Source "") foreach(dir IN ITEMS Index: test-suite/trunk/External/SPEC/CINT2006/456.hmmer/CMakeLists.txt =================================================================== --- test-suite/trunk/External/SPEC/CINT2006/456.hmmer/CMakeLists.txt +++ test-suite/trunk/External/SPEC/CINT2006/456.hmmer/CMakeLists.txt @@ -1,3 +1,5 @@ +list(APPEND LDFLAGS -lm) + macro(test_input run_type input output) # The benchmark modifies the data file, need to copy a fresh one llvm_test_run(RUN_TYPE ${run_type} EXECUTABLE cp -f Index: test-suite/trunk/External/SPEC/CINT2006/464.h264ref/CMakeLists.txt =================================================================== --- test-suite/trunk/External/SPEC/CINT2006/464.h264ref/CMakeLists.txt +++ test-suite/trunk/External/SPEC/CINT2006/464.h264ref/CMakeLists.txt @@ -1,6 +1,5 @@ -if(ARCH STREQUAL "PowerPC" AND TARGET_OS STREQUAL "Linux") - list(APPEND CFLAGS -fsigned-char) -endif() +list(APPEND LDFLAGS -lm) +list(APPEND CFLAGS -fsigned-char) macro(test_input run_type leading level) llvm_test_run(RUN_TYPE ${run_type}