summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2016-01-28 17:00:29 +0000
committerfhajny <fhajny@pkgsrc.org>2016-01-28 17:00:29 +0000
commit1875e37a1ad193708d5a49e25f7202e91116f9e8 (patch)
treedd61a43319f4916cee8bb292b1558d9c57e555d6 /x11
parent7337ea50c0ab95f05ba3b46b02ee9df4b4a5135d (diff)
downloadpkgsrc-1875e37a1ad193708d5a49e25f7202e91116f9e8.tar.gz
Sun ld doesn't support -rpath-link. Fixes build on SunOS.
Diffstat (limited to 'x11')
-rw-r--r--x11/qt5-qtbase/Makefile.common8
1 files changed, 7 insertions, 1 deletions
diff --git a/x11/qt5-qtbase/Makefile.common b/x11/qt5-qtbase/Makefile.common
index d4bba3da91f..d664022f179 100644
--- a/x11/qt5-qtbase/Makefile.common
+++ b/x11/qt5-qtbase/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.17 2016/01/09 05:40:58 ryoon Exp $
+# $NetBSD: Makefile.common,v 1.18 2016/01/28 17:00:29 fhajny Exp $
# used by x11/qt5-mysql/Makefile
# used by x11/qt5-odbc/Makefile
# used by x11/qt5-psql/Makefile
@@ -41,6 +41,12 @@ CFLAGS.NetBSD+= -D_NETBSD_SOURCE
# for GL_GLEXT_LEGACY with GL/gl.h error, GL_ARB_shader_objects is not defined.
BUILDLINK_TRANSFORM+= rm:-Wundef
+# SunOS ld doesn't support -rpath-link
+.if ${OPSYS} == "SunOS"
+BUILDLINK_TRANSFORM+= rm:-Wl,-rpath-link,${PREFIX}/qt5/lib
+BUILDLINK_TRANSFORM+= rm:-Wl,-rpath-link,${WRKSRC}/lib
+.endif
+
MAKE_ENV+= QTPREFIX=${QTPREFIX:Q}
PLIST_VARS+= mac unix
.if ${OPSYS} == "Darwin"