summaryrefslogtreecommitdiff
path: root/math/octave
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2016-03-22 18:58:27 +0000
committerjoerg <joerg@pkgsrc.org>2016-03-22 18:58:27 +0000
commit63832206f27bcc2edfce6ce276e5459598e688d4 (patch)
treebcd85834d585848d86a5f5dc2716df3b6b0e961c /math/octave
parent23734dad0dc2b40518fc6f544e9d7d3653dd89dc (diff)
downloadpkgsrc-63832206f27bcc2edfce6ce276e5459598e688d4.tar.gz
Fix build against Qt5 when reduced-relocation hack is active.
Diffstat (limited to 'math/octave')
-rw-r--r--math/octave/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/math/octave/Makefile b/math/octave/Makefile
index f12f33e793f..0706d0104d1 100644
--- a/math/octave/Makefile
+++ b/math/octave/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.134 2016/03/05 11:28:52 jperkin Exp $
+# $NetBSD: Makefile,v 1.135 2016/03/22 18:58:27 joerg Exp $
DISTNAME= octave-4.0.0
PKGREVISION= 1
@@ -82,6 +82,12 @@ SUBST_SED.qt5-pkg-config+= -e 's,QtGui,Qt5Widgets,g'
SUBST_SED.qt5-pkg-config+= -e 's,QtNetwork,Qt5Network,g'
SUBST_SED.qt5-pkg-config+= -e 's,QtOpenGL,Qt5OpenGL,g'
+# Matches reduce-relocations logic in x11/qt5-qtbase
+.if ${OPSYS} != "Darwin" && ${OPSYS} != "SunOS" && \
+ (!empty(MACHINE_ARCH:Mi386) || !empty(MACHINE_ARCH:Mx86_64))
+CFLAGS+= -fPIC
+.endif
+
PREPEND_PATH+= ${QTDIR}/bin
MAKE_ENV+= V=1