$NetBSD: patch-ax,v 1.6 2007/05/12 13:53:08 ghen Exp $

--- security/coreconf/SunOS5.mk.orig	2006-03-29 22:26:44.000000000 +0200
+++ security/coreconf/SunOS5.mk
@@ -176,6 +176,10 @@ endif
 endif
 DSO_LDOPTS += -z combreloc -z defs -z ignore
 
+ifdef LIBRUNPATH
+DSO_LDOPTS += -R$(LIBRUNPATH)
+endif
+
 # -KPIC generates position independent code for use in shared libraries.
 # (Similarly for -fPIC in case of gcc.)
 ifdef NS_USE_GCC