$NetBSD: patch-ax,v 1.2.12.1 2006/02/09 10:32:28 salo Exp $

--- security/coreconf/SunOS5.mk.orig	2006-02-02 13:19:58.000000000 +0100
+++ security/coreconf/SunOS5.mk
@@ -182,6 +182,10 @@ endif
 	DSO_LDOPTS += -G -h $(notdir $@)
 endif
 
+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
