logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

archive-objs-order.patch (4249B)


  1. SPDX-FileCopyrightText: 2022 Dor Askayo <dor.askayo@gmail.com>
  2. SPDX-FileCopyrightText: 2010 Chris Demetriou <cgd@google.com>
  3. SPDX-License-Identifier: GPL-2.0-or-later
  4. Backported from upstream commit 74c8993c178a1386ea5e2363a01d919738402f30
  5. --- libtool-2.2.4/libltdl/config/ltmain.m4sh 2008-05-04 22:09:52.000000000 +0300
  6. +++ libtool-2.2.4/libltdl/config/ltmain.m4sh 2022-05-14 14:24:15.506913405 +0300
  7. @@ -2226,7 +2226,7 @@
  8. darwin_file=
  9. darwin_files=
  10. for darwin_file in $darwin_filelist; do
  11. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  12. + darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
  13. $LIPO -create -output "$darwin_file" $darwin_files
  14. done # $darwin_filelist
  15. $RM -rf unfat-$$
  16. @@ -2241,7 +2241,7 @@
  17. func_extract_an_archive "$my_xdir" "$my_xabs"
  18. ;;
  19. esac
  20. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  21. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
  22. done
  23. func_extract_archives_result="$my_oldobjs"
  24. --- libtool-2.2.4/libltdl/config/ltmain.sh 2008-05-04 22:23:13.000000000 +0300
  25. +++ libtool-2.2.4/libltdl/config/ltmain.sh 2022-05-14 14:25:15.314266819 +0300
  26. @@ -2668,7 +2668,7 @@
  27. darwin_file=
  28. darwin_files=
  29. for darwin_file in $darwin_filelist; do
  30. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  31. + darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
  32. $LIPO -create -output "$darwin_file" $darwin_files
  33. done # $darwin_filelist
  34. $RM -rf unfat-$$
  35. @@ -2683,7 +2683,7 @@
  36. func_extract_an_archive "$my_xdir" "$my_xabs"
  37. ;;
  38. esac
  39. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  40. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
  41. done
  42. func_extract_archives_result="$my_oldobjs"
  43. --- libtool-2.2.4/libltdl/m4/libtool.m4 2008-05-04 19:34:02.000000000 +0300
  44. +++ libtool-2.2.4/libltdl/m4/libtool.m4 2022-05-14 14:24:15.507913411 +0300
  45. @@ -5864,20 +5864,20 @@
  46. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  47. rm -rf $tpldir~
  48. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  49. - compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  50. + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  51. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  52. rm -rf $tpldir~
  53. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  54. - $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  55. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  56. $RANLIB $oldlib'
  57. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  58. rm -rf $tpldir~
  59. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  60. - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  61. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  62. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  63. rm -rf $tpldir~
  64. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  65. - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  66. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  67. ;;
  68. *) # Version 6 will use weak symbols
  69. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'