summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorBartek Rutkowski <robak@FreeBSD.org>2015-03-24 17:29:47 +0000
committerBartek Rutkowski <robak@FreeBSD.org>2015-03-24 17:29:47 +0000
commite791039273495b53ac1f1208a98e310526f45b83 (patch)
tree41207ea71860771ed6ca96cdade7da147890c904 /math
parent5 ports categories: Remove $PTHREAD_LIBS (diff)
math/lapack: fix build when PROFILE option is selected
- Since dynamic linking is broken when PROFILE is used, enforce '-static' LDFLAGS - Maintainer's timeout (maho@FreeBSD.org) PR: 185375 Submitted by: Pawel Biernacki <pawel.biernacki@gmail.com>
Notes
Notes: svn path=/head/; revision=382127
Diffstat (limited to 'math')
-rw-r--r--math/lapack/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/lapack/Makefile b/math/lapack/Makefile
index 3e7f3ad4827d..34ba355db8a0 100644
--- a/math/lapack/Makefile
+++ b/math/lapack/Makefile
@@ -80,6 +80,10 @@ PICFLAG?= -fpic
FFLAGS_PROFILE?= -pg
FFLAGS_SHARED ?= ${PICFLAG}
+.if ${PORT_OPTIONS:MPROFILE}
+LDFLAGS+= -static
+.endif
+
.if ${PORT_OPTIONS:MPROFILE} && !exists(/usr/lib/libc_p.a)
IGNORE= you have chosen WITH_PROFILE, but have not installed the\
base system profiling libraries