summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2002-12-02 17:08:40 +0000
committerjschauma <jschauma@pkgsrc.org>2002-12-02 17:08:40 +0000
commitba81d6296d6420811f177bfab9cdab257a624e41 (patch)
tree2a50e9cb0e13a2181409ada22af70a135ead2733 /mk
parent6695c7df6ac973c9d8911ac128cad16fdd3072a5 (diff)
downloadpkgsrc-ba81d6296d6420811f177bfab9cdab257a624e41.tar.gz
IRIX wants -rpath (missed in last commit)
Diffstat (limited to 'mk')
-rw-r--r--mk/buildlink2/bsd.buildlink2.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/buildlink2/bsd.buildlink2.mk b/mk/buildlink2/bsd.buildlink2.mk
index e3258454cd8..9afeeed12de 100644
--- a/mk/buildlink2/bsd.buildlink2.mk
+++ b/mk/buildlink2/bsd.buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink2.mk,v 1.60 2002/12/01 13:24:14 jlam Exp $
+# $NetBSD: bsd.buildlink2.mk,v 1.61 2002/12/02 17:08:40 jschauma Exp $
#
# An example package buildlink2.mk file:
#
@@ -57,7 +57,11 @@ MAKE_ENV+= BUILDLINK_DIR="${BUILDLINK_DIR}"
CONFIGURE_ENV+= BUILDLINK_X11_DIR="${BUILDLINK_X11_DIR}"
MAKE_ENV+= BUILDLINK_X11_DIR="${BUILDLINK_X11_DIR}"
_BLNK_CPPFLAGS= -I${LOCALBASE}/include
+.if ${OPSYS} == "IRIX"
+_BLNK_LDFLAGS= -L${LOCALBASE}/lib -Wl,-rpath -Wl,${LOCALBASE}/lib
+.else
_BLNK_LDFLAGS= -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib
+.endif
_BLNK_OPSYS= ${OPSYS}
# The configure process usually tests for outlandish or missing things
@@ -74,8 +78,12 @@ BUILD_DEPENDS+= x11-links>=0.8:../../pkgtools/x11-links
_BLNK_X11_DIR= ${LOCALBASE}/share/x11-links
. endif
_BLNK_CPPFLAGS+= -I${X11BASE}/include
+.if ${OPSYS} == "IRIX"
+_BLNK_LDFLAGS+= -L${X11BASE}/lib -Wl,-rpath -Wl,${X11BASE}/lib
+.else
_BLNK_LDFLAGS+= -L${X11BASE}/lib -Wl,-R${X11BASE}/lib
.endif
+.endif
CONFIGURE_ENV+= BUILDLINK_CPPFLAGS="${_BLNK_CPPFLAGS}"
MAKE_ENV+= BUILDLINK_CPPFLAGS="${_BLNK_CPPFLAGS}"