libtool patch for cyrus-sasl-2.1.22

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following patch makes plugins with dependent libraries actually work if said library isn't in the system default library search path. I patch this up every release so my openssl libs get properly linked in at run-time (dump -Lv shows a proper RPATH in the plugin .so files).

I've only tested this on Solaris, so YMMV. (I don't handle the -rpath case, as I can't test my changes, but making similar changes should be trivial)

--- config/ltmain.sh.DIST       2006-09-04 12:56:47.145456000 -0700
+++ config/ltmain.sh    2006-09-04 13:06:09.099978000 -0700
@@ -984,6 +984,10 @@
           *" $arg "*) ;;
           *) xrpath="$xrpath $arg" ;;
           esac
+           case " $deplibs " in
+            *" -R$arg "*) ;;
+            *) deplibs="$deplibs -R$arg";;
+            esac
         fi
         prev=
         continue
@@ -1151,6 +1155,10 @@
       *" $dir "*) ;;
       *) xrpath="$xrpath $dir" ;;
       esac
+       case " $deplibs " in
+        *" -R$dir "*) ;;
+        *) deplibs="$deplibs -R$dir";;
+        esac
       continue
       ;;

[Index of Archives]     [Info Cyrus]     [Squirrel Mail]     [Linux Media]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux