# RPATH issues when upgrading net-snmp to version 5.4.1 # # Developed in-house. Solaris-specific; not suitable for upstream --- net-snmp-5.9.4/ltmain.sh.orig +++ net-snmp-5.9.4/ltmain.sh @@ -6828,7 +6828,9 @@ if test rpath = "$prev"; 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 @@ -9557,7 +9559,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