summaryrefslogtreecommitdiff
path: root/mu-aux/ltmain.sh.patch
blob: 239017e0cd4290c76b56d7be580eb5b25a6cb971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Index: build-aux/ltmain.sh
--- build-aux.orig/ltmain.sh	2019-11-30 19:38:53.588892479 +0200
+++ build-aux/ltmain.sh	2019-12-03 23:05:41.766760636 +0200
@@ -6556,6 +6556,7 @@ func_mode_link ()
     xrpath=
     perm_rpath=
     temp_rpath=
+    temp_rpath_tail=
     thread_safe=no
     vinfo=
     vinfo_number=no
@@ -8088,7 +8089,10 @@ func_mode_link ()
 	      # Make sure the rpath contains only unique directories.
 	      case $temp_rpath: in
 	      *"$absdir:"*) ;;
-	      *) func_append temp_rpath "$absdir:" ;;
+              *) case $absdir in
+                 "$progdir/"*) func_append temp_rpath "$absdir:" ;;
+                 *)            func_append temp_rpath_tail "$absdir:" ;;
+                 esac
 	      esac
 	    fi
 
@@ -8538,6 +8542,9 @@ func_mode_link ()
 	  fi # link_all_deplibs != no
 	fi # linkmode = lib
       done # for deplib in $libs
+
+      func_append temp_rpath "$temp_rpath_tail"
+      
       if test link = "$pass"; then
 	if test prog = "$linkmode"; then
 	  compile_deplibs="$new_inherited_linker_flags $compile_deplibs"

Return to:

Send suggestions and report system problems to the System administrator.