diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-04-27 23:19:23 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-04-28 00:00:15 -0500 |
commit | f3c441776255630552df763cdad0258f63fff94e (patch) | |
tree | 615f3aa17f0bf983ad25aecee8efa6dc9549b8e2 /legacy/libtool/libtool-fix-cross-compile.patch | |
parent | 900e6d2f97f78476c79145e63852eb369e394c22 (diff) | |
download | packages-f3c441776255630552df763cdad0258f63fff94e.tar.gz packages-f3c441776255630552df763cdad0258f63fff94e.tar.bz2 packages-f3c441776255630552df763cdad0258f63fff94e.tar.xz packages-f3c441776255630552df763cdad0258f63fff94e.zip |
system/libtool: Move to legacy/
Replaced by system/slibtool.
Tracking bug: #595
Diffstat (limited to 'legacy/libtool/libtool-fix-cross-compile.patch')
-rw-r--r-- | legacy/libtool/libtool-fix-cross-compile.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/legacy/libtool/libtool-fix-cross-compile.patch b/legacy/libtool/libtool-fix-cross-compile.patch new file mode 100644 index 000000000..585897e0d --- /dev/null +++ b/legacy/libtool/libtool-fix-cross-compile.patch @@ -0,0 +1,36 @@ +--- libtool-2.4.6.orig/build-aux/ltmain.in ++++ libtool-2.4.6/build-aux/ltmain.in +@@ -6449,7 +6449,7 @@ + fi + else + # We cannot seem to hardcode it, guess we'll fake it. +- add_dir=-L$libdir ++ add_dir="-L$lt_sysroot$libdir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in +@@ -7628,9 +7628,11 @@ + test relink = "$opt_mode" || rpath=$compile_rpath$rpath + for libdir in $rpath; do + if test -n "$hardcode_libdir_flag_spec"; then ++ func_replace_sysroot "$libdir" ++ libdir=$func_replace_sysroot_result ++ func_stripname '=' '' "$libdir" ++ libdir=$func_stripname_result + if test -n "$hardcode_libdir_separator"; then +- func_replace_sysroot "$libdir" +- libdir=$func_replace_sysroot_result + if test -z "$hardcode_libdirs"; then + hardcode_libdirs=$libdir + else +@@ -8360,6 +8362,10 @@ + hardcode_libdirs= + for libdir in $compile_rpath $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then ++ func_replace_sysroot "$libdir" ++ libdir=$func_replace_sysroot_result ++ func_stripname '=' '' "$libdir" ++ libdir=$func_stripname_result + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs=$libdir |