瀏覽代碼

libtool: Don't use the libdir path found in .la files. Fixes the build of various packages.

SVN-Revision: 19422
Lars-Peter Clausen 15 年之前
父節點
當前提交
51d6591729
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      package/libtool/patches/100-libdir_path.patch

+ 9 - 0
package/libtool/patches/100-libdir_path.patch

@@ -10,6 +10,15 @@
  	(rm -f $@ && cp ltmain.shT $@ && rm -f ltmain.shT)
 --- a/ltmain.in
 +++ b/ltmain.in
+@@ -2827,7 +2827,7 @@ EOF
+ 	      fi
+ 	    else
+ 	      # We cannot seem to hardcode it, guess we'll fake it.
+-	      add_dir="-L$libdir"
++	      add_dir="-L@GLOBAL_LIBDIR@"
+ 	      # Try looking first in the location we're being installed to.
+ 	      if test -n "$inst_prefix_dir"; then
+ 		case $libdir in
 @@ -5669,7 +5669,7 @@ fi\
  		  $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  		  exit $EXIT_FAILURE