Add the -Wl,-R flags to find the widget library. The ld wrapper script
understands "-Wl,-R" to be just "-R", so it will work fine.
This commit is contained in:
parent
74c6e1f3e2
commit
04cb5535df
4 changed files with 23 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: xaw.buildlink2.mk,v 1.3 2002/08/28 15:20:39 jlam Exp $
|
||||
# $NetBSD: xaw.buildlink2.mk,v 1.4 2002/09/23 08:29:56 jlam Exp $
|
||||
|
||||
.if !defined(XAW_BUILDLINK2_MK)
|
||||
XAW_BUILDLINK2_MK= # defined
|
||||
|
@ -9,14 +9,19 @@ XAW_TYPE?= standard
|
|||
.include "../../mk/bsd.prefs.mk"
|
||||
|
||||
.if ${XAW_TYPE} == "xpm"
|
||||
.include "../../x11/Xaw-Xpm/buildlink2.mk"
|
||||
. include "../../x11/Xaw-Xpm/buildlink2.mk"
|
||||
BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.Xaw-Xpm}
|
||||
.elif ${XAW_TYPE} == "3d"
|
||||
.include "../../x11/Xaw3d/buildlink2.mk"
|
||||
. include "../../x11/Xaw3d/buildlink2.mk"
|
||||
BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.Xaw3d}
|
||||
.elif ${XAW_TYPE} == "neXtaw"
|
||||
.include "../../x11/neXtaw/buildlink2.mk"
|
||||
. include "../../x11/neXtaw/buildlink2.mk"
|
||||
BUILDLINK_PREFIX.Xaw?= ${BUILDLINK_PREFIX.neXtaw}
|
||||
.else
|
||||
LIBXAW?= -L${X11BASE}/lib -lXaw
|
||||
BUILDLINK_PREFIX.Xaw?= ${X11BASE}
|
||||
LIBXAW?= -L${X11BASE}/lib -Wl,-R${X11BASE} -lXaw
|
||||
.endif
|
||||
|
||||
MAKE_ENV+= LIBXAW="${LIBXAW}"
|
||||
|
||||
.endif # XAW_BUILDLINK2_MK
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 19:23:26 jlam Exp $
|
||||
# $NetBSD: buildlink2.mk,v 1.3 2002/09/23 08:29:58 jlam Exp $
|
||||
|
||||
.if !defined(XAWXPM_BUILDLINK2_MK)
|
||||
XAWXPM_BUILDLINK2_MK= # defined
|
||||
|
@ -17,7 +17,10 @@ BUILDLINK_FILES.Xaw-Xpm+= lib/libXaw3d.*
|
|||
BUILDLINK_TARGETS+= Xaw-Xpm-buildlink
|
||||
|
||||
LIBXAW?= -L${BUILDLINK_PREFIX.Xaw-Xpm}/lib \
|
||||
-L${BUILDLINK_PREFIX.xpm}/lib -lXaw3d -lXpm
|
||||
-Wl,-R${BUILDLINK_PREFIX.Xaw-Xpm}/lib \
|
||||
-L${BUILDLINK_PREFIX.xpm}/lib \
|
||||
-Wl,-R${BUILDLINK_PREFIX.xpm}/lib \
|
||||
-lXaw3d -lXpm
|
||||
|
||||
Xaw-Xpm-buildlink: _BUILDLINK_USE
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 19:23:26 jlam Exp $
|
||||
# $NetBSD: buildlink2.mk,v 1.3 2002/09/23 08:29:59 jlam Exp $
|
||||
|
||||
.if !defined(XAW3D_BUILDLINK2_MK)
|
||||
XAW3D_BUILDLINK2_MK= # defined
|
||||
|
@ -15,7 +15,9 @@ BUILDLINK_FILES.Xaw3d+= lib/libXaw3d.*
|
|||
|
||||
BUILDLINK_TARGETS+= Xaw3d-buildlink
|
||||
|
||||
LIBXAW?= -L${BUILDLINK_PREFIX.Xaw3d}/lib -lXaw3d
|
||||
LIBXAW?= -L${BUILDLINK_PREFIX.Xaw3d}/lib \
|
||||
-Wl,-R${BUILDLINK_PREFIX.Xaw3d}/lib \
|
||||
-lXaw3d
|
||||
|
||||
Xaw3d-buildlink: _BUILDLINK_USE
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: buildlink2.mk,v 1.1 2002/08/28 15:11:21 jlam Exp $
|
||||
# $NetBSD: buildlink2.mk,v 1.2 2002/09/23 08:29:59 jlam Exp $
|
||||
|
||||
.if !defined(NEXTAW_BUILDLINK2_MK)
|
||||
NEXTAW_BUILDLINK2_MK= # defined
|
||||
|
@ -14,8 +14,9 @@ BUILDLINK_FILES.neXtaw+= lib/libneXtaw.*
|
|||
|
||||
BUILDLINK_TARGETS+= neXtaw-buildlink
|
||||
|
||||
LIBXAW?= -L${BUILDLINK_PREFIX.neXtaw}/lib -lneXtaw
|
||||
MAKE_ENV+= LIBXAW="${LIBXAW}"
|
||||
LIBXAW?= -L${BUILDLINK_PREFIX.neXtaw}/lib \
|
||||
-Wl,-R${BUILDLINK_PREFIX.neXtaw}/lib \
|
||||
-lneXtaw
|
||||
|
||||
neXtaw-buildlink: _BUILDLINK_USE
|
||||
|
||||
|
|
Loading…
Reference in a new issue