]> git.pld-linux.org Git - packages/libtool.git/commitdiff
- cleanup + bugfix in ltmain.sh part
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 6 Apr 2004 21:55:50 +0000 (21:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libtool-relink.patch -> 1.7

libtool-relink.patch

index f7472081542aeafc1ecbe4ba427cba7a71dde9e8..4ff087c14cae67afed04c3f8da700560fda6c34c 100644 (file)
 +++ libtool-1.4e/ltmain.in     Tue Jan 28 14:47:59 2003
 @@ -2279,6 +2289,7 @@
  
-         if test "$linkmode" = prog || test "$mode" != relink; then
+         if test "$linkmode" = prog || test "$mode" = relink; then
            add_shlibpath=
 +          add_prefix_dir=
            add_dir=
            add=
-           lib_linked=yes
+           # Finalize command for both is simple: just hardcode it.
 @@ -2384,10 +2395,22 @@
              add="-l$name"
            fi
  
-+          if test -n "$inst_prefix_dir"; then
-+            case "$libdir" in
-+            [\\/]*)
-+              add_prefix_dir="-L$inst_prefix_dir$libdir"
-+              ;;
-+            esac
-+          fi
-+  
-+          # add_prefix_dir must be appended instead, otherwise it can
-+          # possibly be overrided by any hardcoded -L/... path in deplibs
++          if test -n "$inst_prefix_dir"; then
++            case "$libdir" in
++            [\\/]*)
++              add_prefix_dir="-L$inst_prefix_dir$libdir"
++              ;;
++            esac
++          fi
++
++          # add_prefix_dir must be appended instead, otherwise it can
++          # possibly be overrided by any hardcoded -L/... path in deplibs
            if test "$linkmode" = prog; then
-+            test -n "$add_prefix_dir" && finalize_deplibs="$finalize_deplibs $add_prefix_dir"
++            test -n "$add_prefix_dir" && finalize_deplibs="$finalize_deplibs $add_prefix_dir"
              test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
              test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
            else
-+            test -n "$add_prefix_dir" && deplibs="$deplibs $add_prefix_dir"
++            test -n "$add_prefix_dir" && deplibs="$deplibs $add_prefix_dir"
              test -n "$add_dir" && deplibs="$add_dir $deplibs"
              test -n "$add" && deplibs="$add $deplibs"
            fi
This page took 0.148315 seconds and 4 git commands to generate.