--- runtime/flang/CMakeLists.txt.orig 2019-10-09 20:28:35 UTC +++ runtime/flang/CMakeLists.txt @@ -18,7 +18,7 @@ enable_language(C ASM Fortran) # Enable assembly and F SET(ASM_OPTIONS "-DLINUX_ELF") SET(CMAKE_ASM_FLAGS "${CFLAGS} ${ASM_OPTIONS}" ) -SET(CMAKE_SHARED_LINKER_FLAGS "-no-flang-libs") +SET(CMAKE_SHARED_LINKER_FLAGS "-no-flang-libs -L/usr/lib") # We are using Fortran driver to build this library with fresh compiler # components, so point its binary directory to the build directory to pick up