--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/net-snmp-57/patches/009.ltmain.sh.patch Fri Dec 11 03:49:26 2015 -0800
@@ -0,0 +1,25 @@
+# RPATH issues when upgrading net-snmp to version 5.4.1
+#
+# Developed in-house. Solaris-specific; not suitable for upstream
+--- net-snmp-5.7.2/ltmain.sh Sun Dec 30 23:42:05 2012
++++ net-snmp-5.7.2/ltmain.sh Sun Dec 30 23:49:01 2012
+@@ -5406,7 +5406,9 @@
+ if test "$prev" = rpath; then
+ case "$rpath " in
+ *" $arg "*) ;;
+- *) func_append rpath " $arg" ;;
++ *) func_append rpath " $arg"
++ # This is make sure only $libdir path is encoded in RUNPATH
++ sma_rpath="$rpath" ;;
+ esac
+ else
+ case "$xrpath " in
+@@ -8046,7 +8048,7 @@
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+- func_append dep_rpath " $flag"
++#func_append dep_rpath " $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$perm_rpath " in