summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/mpas-model/makefile.patch
blob: a03f40f397df5588bce51bf0e8a495aeac2fa6b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- spack-src/Makefile.org	2021-01-06 10:11:15.852202444 +0900
+++ spack-src/Makefile	2021-01-06 10:35:16.191769328 +0900
@@ -459,8 +459,10 @@
 # Keep open the possibility of shared libraries in future with, e.g., .so suffix
 #
 ifneq ($(wildcard $(PIO_LIB)/libpio\.*), )
+ifneq ($(wildcard $(PIO_LIB)/libpio\.*),$(PIO_LIB)/libpio.settings)
 	LIBS += -lpio
 endif
+endif
 ifneq ($(wildcard $(PIO_LIB)/libpiof\.*), )
 	LIBS += -lpiof
 endif