Sun ld doesn't support -rpath-link. Fixes build on SunOS.
This commit is contained in:
parent
d1ab817ffd
commit
16733dc8b7
1 changed files with 7 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue