Sun ld doesn't support -rpath-link. Fixes build on SunOS.

This commit is contained in:
fhajny 2016-01-28 17:00:29 +00:00
parent d1ab817ffd
commit 16733dc8b7

View file

@ -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"