components/net-snmp-57/patches/009.ltmain.sh.patch
author Danek Duvall <danek.duvall@oracle.com>
Thu, 15 Sep 2016 14:25:24 -0700
changeset 6951 deaf66c90a34
parent 5867 445e2cf1c845
permissions -rw-r--r--
24676059 {GIT,HG}_HASH lines not replaced properly

# 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