aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuri <yuri@FreeBSD.org>2018-06-03 10:50:39 +0800
committeryuri <yuri@FreeBSD.org>2018-06-03 10:50:39 +0800
commit232133e7f387d407a631be6d922b7781bc73d051 (patch)
tree1493838ac9b71bab843883d5b1f600445312aeb6
parent6c9b98e114987943a7e6f54ca8cd61d7596d4712 (diff)
downloadfreebsd-ports-gnome-232133e7f387d407a631be6d922b7781bc73d051.tar.gz
freebsd-ports-gnome-232133e7f387d407a631be6d922b7781bc73d051.tar.zst
freebsd-ports-gnome-232133e7f387d407a631be6d922b7781bc73d051.zip
math/suitesparse: Fix undesirable linking with pre-installed older version
PR: 227791 Reported by: John Hein <z7dr6ut7gs@snkmail.com>
-rw-r--r--math/suitesparse/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/math/suitesparse/Makefile b/math/suitesparse/Makefile
index 863a944b2aa6..8b77d3724032 100644
--- a/math/suitesparse/Makefile
+++ b/math/suitesparse/Makefile
@@ -43,6 +43,7 @@ METIS_PATH= ${LOCALBASE}/include/metis
CHOLMOD_CONFIG=
CFLAGS+= -I${LOCALBASE}/include
CXXFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${WRKSRC}/lib # prevent linking with shared libs from the preinstalled older versions
MAKE_ARGS+= MY_METIS_LIB="-L${LOCALBASE}/lib -lmetis $(LDFLAGS)"
post-patch: