Skip to content

Commit

Permalink
Merge branch 'aomp-epsdb' into aomp-epsdb-mainline
Browse files Browse the repository at this point in the history
Change-Id: Ieed685449066abf4802683b6cf52543c6c436ad7
  • Loading branch information
estewart08 committed Aug 2, 2022
2 parents f94db46 + b7275f2 commit c2c5f08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ if (APPLE)
set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-flat_namespace -Wl,-undefined -Wl,suppress")
endif ()

find_library(LIBQUADMATH_LOC quadmath NAMES libquadmath.so libquadmath.so.0 REQUIRED)

macro(add_flang_library name)
llvm_process_sources(srcs ${ARGN})
if (MODULE)
Expand All @@ -329,7 +331,7 @@ macro(add_flang_library name)
endif( LLVM_COMMON_DEPENDS )

llvm_config( ${name} ${LLVM_LINK_COMPONENTS} )
target_link_libraries( ${name} ${LLVM_COMMON_LIBS} -lquadmath)
target_link_libraries( ${name} ${LLVM_COMMON_LIBS} ${LIBQUADMATH_LOC})
# link_system_libs( ${name} ) # getd of cmake warning messages

install(TARGETS ${name}
Expand Down
2 changes: 1 addition & 1 deletion runtime/flangrti/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ find_library(
libpgmath.so
HINTS ${CMAKE_BINARY_DIR}/lib)
target_link_libraries(flangrti_shared ${LIBPGMATH} -Wl,-rpath,\$ORIGIN)
target_link_libraries(flangrti_shared quadmath)
target_link_libraries(flangrti_shared ${LIBQUADMATH_LOC})

if( ${TARGET_ARCHITECTURE} STREQUAL "aarch64" )
target_compile_definitions(flangrti_static PRIVATE TARGET_LINUX_ARM)
Expand Down

0 comments on commit c2c5f08

Please sign in to comment.