summaryrefslogtreecommitdiff
path: root/mk/motif.buildlink2.mk
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2002-12-02 17:07:27 +0000
committerjschauma <jschauma@pkgsrc.org>2002-12-02 17:07:27 +0000
commit6695c7df6ac973c9d8911ac128cad16fdd3072a5 (patch)
treef214a1fbd957190cb8d4e798ccbbbe42be7d37c5 /mk/motif.buildlink2.mk
parent70ef70b5de1453f5407f1a78df16e9fae6632ad3 (diff)
downloadpkgsrc-6695c7df6ac973c9d8911ac128cad16fdd3072a5.tar.gz
Add initial support for IRIX.
Again, anybody's feedback (success or failure) will be appreciated.
Diffstat (limited to 'mk/motif.buildlink2.mk')
-rw-r--r--mk/motif.buildlink2.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/motif.buildlink2.mk b/mk/motif.buildlink2.mk
index 921f21cbcae..d0668565cb1 100644
--- a/mk/motif.buildlink2.mk
+++ b/mk/motif.buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: motif.buildlink2.mk,v 1.3 2002/10/22 22:54:08 jlam Exp $
+# $NetBSD: motif.buildlink2.mk,v 1.4 2002/12/02 17:07:28 jschauma Exp $
#
# USE_MOTIF12
# use a Motif-1.2-compatible installation, otherwise, assume
@@ -150,7 +150,12 @@ MOTIFBASE= ${_MOTIFBASE}
USE_X11?= # defined
MAKE_ENV+= MOTIFLIB="${MOTIFLIB}"
MAKE_ENV+= MOTIFBASE="${_MOTIFBASE}"
+.if ${OPSYS} != "IRIX"
LDFLAGS+= -Wl,-R${_MOTIFBASE}/lib
MOTIFLIB?= -Wl,-R${_MOTIFBASE}/lib -Wl,-R${X11BASE}/lib -L${_MOTIFBASE}/lib -lXm -lXp
+.else
+LDFLAGS+= -Wl,-rpath -Wl,${_MOTIFBASE}/lib
+MOTIFLIB?= -Wl,-rpath -Wl,${_MOTIFBASE}/lib -Wl,-rpath -Wl,${X11BASE}/lib -L${_MOTIFBASE}/lib -lXm -lXp
+.endif
.endif # MOTIF_BUILDLINK2_MK