[llvm-dev] building llvm_Rel400 on Scientific Linux (RHEL) 7.3 x86_64

Adam Jensen via llvm-dev llvm-dev at lists.llvm.org
Sat Jun 3 17:12:22 PDT 2017

On Sat, 3 Jun 2017 16:04:57 -0700
Tim Northover <t.p.northover at gmail.com> wrote:
> I think you should be able to fix it by changing the
> compiler-rt/lib/xray/test/CMakeLists.txt. If you find the
> "add_compiler_rt_test" call and move "-lstdc++" to the end, just after
> "-lrt" it should work.

Thanks, Tim. I don't see "-lrt":


 43       if(NOT APPLE)
 44         add_compiler_rt_test(XRayUnitTests ${testname}
 45           OBJECTS ${TEST_OBJECTS}
 46           DEPS ${TEST_DEPS}
 48           -lstdc++ -lm ${CMAKE_THREAD_LIBS_INIT}
 49           -lpthread
 50           -L${COMPILER_RT_LIBRARY_OUTPUT_DIR} -lclang_rt.xray-fdr-${arch})
 51       endif()

More information about the llvm-dev mailing list