components/net-snmp/patches/009.ltmain.sh.patch
changeset 1679 51291a5fd692
parent 1650 ce501c11d5fa
equal deleted inserted replaced
1678:68d1cdc71760 1679:51291a5fd692
     1 #
     1 --- net-snmp-5.4.2.1/ltmain.sh	Fri Jun  6 02:34:34 2008
     2 # The Net-SNMP libraries are built without -zdefs and are missing a large
     2 +++ net-snmp-5.4.2.1/ltmain.mod.sh	Tue Feb  3 11:02:05 2009
     3 # number of dependency specifications (DT_NEEDED).  This makes it
     3 @@ -1425,7 +1425,9 @@
     4 # impossible to build plugin modules against these libraries using
       
     5 # -zdefs, which should work. One such example is FMA in ON gate. 
       
     6 #
       
     7 --- net-snmp-5.7.2/ltmain.sh	Sun Dec 30 23:42:05 2012
       
     8 +++ net-snmp-5.7.2/ltmain.sh	Sun Dec 30 23:49:01 2012
       
     9 @@ -5406,7 +5406,9 @@
       
    10  	  if test "$prev" = rpath; then
     4  	  if test "$prev" = rpath; then
    11  	    case "$rpath " in
     5  	    case "$rpath " in
    12  	    *" $arg "*) ;;
     6  	    *" $arg "*) ;;
    13 -	    *) func_append rpath " $arg" ;;
     7 -	    *) rpath="$rpath $arg" ;;
    14 +	    *) func_append rpath " $arg"
     8 +	    *) rpath="$rpath $arg"
    15 +		# This is make sure only $libdir path is encoded in RUNPATH
     9 +        # This is make sure only $libdir path is encoded in RUNPATH
    16 +			sma_rpath="$rpath" ;;
    10 +        sma_rpath="$rpath" ;;
    17  	    esac
    11  	    esac
    18  	  else
    12  	  else
    19  	    case "$xrpath " in
    13  	    case "$xrpath " in
    20 @@ -8046,7 +8048,7 @@
    14 @@ -3915,7 +3917,7 @@
       
    15  	if test "$hardcode_into_libs" = yes; then
       
    16  	  # Hardcode the library paths
       
    17  	  hardcode_libdirs=
       
    18 -	  dep_rpath=
       
    19 +	  dep_rpath="-R $sma_rpath"
       
    20  	  rpath="$finalize_rpath"
       
    21  	  test "$mode" != relink && rpath="$compile_rpath$rpath"
       
    22  	  for libdir in $rpath; do
       
    23 @@ -3935,7 +3937,7 @@
    21  		fi
    24  		fi
    22  	      else
    25  	      else
    23  		eval flag=\"$hardcode_libdir_flag_spec\"
    26  		eval flag=\"$hardcode_libdir_flag_spec\"
    24 -		func_append dep_rpath " $flag"
    27 -		dep_rpath="$dep_rpath $flag"
    25 +#func_append dep_rpath " $flag"
    28 +		#dep_rpath="$dep_rpath $flag"
    26  	      fi
    29  	      fi
    27  	    elif test -n "$runpath_var"; then
    30  	    elif test -n "$runpath_var"; then
    28  	      case "$perm_rpath " in
    31  	      case "$perm_rpath " in