From 0174f5f742782d1b43e49213bd9d729f7094962e Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Thu, 11 Jun 2020 16:50:43 +0100 Subject: [PATCH] look for librt when using shm=shmopen --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 6cacb813..85f9f50e 100644 --- a/configure.ac +++ b/configure.ac @@ -428,6 +428,14 @@ case ${ac_SHM} in shmopen) AC_DEFINE([GRID_MPI3_SHMOPEN],[1],[GRID_MPI3_SHMOPEN] ) + CXXFLAGS_CPY=$CXXFLAGS + LDFLAGS_CPY=$LDFLAGS + CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS" + LDFLAGS="$AM_LDFLAGS $LDFLAGS" + AC_SEARCH_LIBS([shm_unlink], [rt], [], + [AC_MSG_ERROR("no library found for shm_unlink")]) + CXXFLAGS=$CXXFLAGS_CPY + LDFLAGS=$LDFLAGS_CPY ;; shmget)