From d3a252cee83d768502a0c9e345fa29816c1b6613 Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 11 Dec 2011 02:59:34 +0000 Subject: BUILDLINK_TRANSFORM+= rm:-lXp This works around the Motif imake templates, which unconditionally provide -lXp for Motif clients. It is not clear to me why imake material for Motif is shipped as part of the default X imake templates rather than with Motif; but imake has always had a special (il)logic of its own. Dealing with this problem by setting IMAKEOPTS here instead causes "can't buildlink files" and I don't understand why; but this approach is maybe better anyway. Fixes build of audio/xmradio and perhaps other Motif-using packages. --- x11/openmotif/buildlink3.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'x11/openmotif') diff --git a/x11/openmotif/buildlink3.mk b/x11/openmotif/buildlink3.mk index 02213175e6e..2cfebd36c2b 100644 --- a/x11/openmotif/buildlink3.mk +++ b/x11/openmotif/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.20 2011/12/07 17:01:58 drochner Exp $ +# $NetBSD: buildlink3.mk,v 1.21 2011/12/11 02:59:34 dholland Exp $ BUILDLINK_TREE+= openmotif @@ -13,6 +13,8 @@ _MOTIFBASE= ${BUILDLINK_PREFIX.openmotif} MOTIFLIB= ${COMPILER_RPATH_FLAG}${_MOTIFBASE}/lib \ -L${_MOTIFBASE}/lib -lXm +BUILDLINK_TRANSFORM+= rm:-lXp + .include "../../mk/jpeg.buildlink3.mk" .include "../../graphics/png/buildlink3.mk" .include "../../x11/libX11/buildlink3.mk" -- cgit v1.2.3