COMP: make the scotch librt dependency conditional

This commit is contained in:
Alexey Matveichev
2018-06-01 14:17:41 +02:00
committed by Mark Olesen
parent 8058184b0c
commit 35d682a4fb
2 changed files with 12 additions and 2 deletions

View File

@ -16,4 +16,9 @@ LIB_LIBS = \
-L$(FOAM_EXT_LIBBIN) \
-L$(FOAM_EXT_LIBBIN)/$(FOAM_MPI) \
-lptscotch -lptscotcherrexit \
-lscotch -lrt
-lscotch
/* May require librt, but scotch does not declare the dependency */
ifeq ("$(SO)","so")
LIB_LIBS += -lrt
endif

View File

@ -12,4 +12,9 @@ EXE_INC = \
LIB_LIBS = \
-L$(SCOTCH_LIB_DIR) \
-lscotch -lscotcherrexit -lrt
-lscotch -lscotcherrexit
/* May require librt, but scotch does not declare the dependency */
ifeq ("$(SO)","so")
LIB_LIBS += -lrt
endif