]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Sort output of 'find' to enable deterministic builds.
authorChris Demetriou <cgd@google.com>
Fri, 19 Mar 2010 05:26:03 +0000 (06:26 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 19 Mar 2010 05:26:18 +0000 (06:26 +0100)
* libltdl/config/ltmain.m4sh (func_extract_archives): Sort
output of 'find'.
* libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Likewise.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
THANKS
libltdl/config/ltmain.m4sh
libltdl/m4/libtool.m4

index c0447e57a06a3225e9458a76725b1a911d661ea1..744157f5e86281f1657848b259f514d3e6048c54 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-03-19  Chris Demetriou  <cgd@google.com>
+
+       Sort output of 'find' to enable deterministic builds.
+       * libltdl/config/ltmain.m4sh (func_extract_archives): Sort
+       output of 'find'.
+       * libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Likewise.
+       * THANKS: Update.
+
 2010-03-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Unconditionally normalize LC_ALL, LANGUAGE in libtool script.
diff --git a/THANKS b/THANKS
index 7ff58a83af1ad50403fc4affb78b4461223d054e..529a69900c9f6fb13354c832473bc9f6d752e984 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -79,6 +79,7 @@
   Bruno Haible                 haible@ilog.fr
   Camilo La Rota               camilo.larota@ens-lyon.fr
   Carl D. Roth                 roth@cse.ucsc.edu
+  Chris Demetriou              cgd@google.com
   Chris P. Ross                        cross@eng.us.uu.net
   Christian Biesinger          cbiesinger@web.de
   Christian Rössel            christian.roessel@gmx.de
index c7af229c0fb15ccc0f25708a6ebf288491c147f4..435f1c4a010e56ac3d5bd0c91659405422a3f0bd 100644 (file)
@@ -2311,7 +2311,7 @@ func_extract_archives ()
            darwin_file=
            darwin_files=
            for darwin_file in $darwin_filelist; do
-             darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
+             darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
              $LIPO -create -output "$darwin_file" $darwin_files
            done # $darwin_filelist
            $RM -rf unfat-$$
@@ -2326,7 +2326,7 @@ func_extract_archives ()
         func_extract_an_archive "$my_xdir" "$my_xabs"
        ;;
       esac
-      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
+      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
     done
 
     func_extract_archives_result="$my_oldobjs"
index 677505d65675dd127f868b27857639410aacf035..d74038f8353c74245cf6e097f48f9b11b15d98c5 100644 (file)
@@ -6001,20 +6001,20 @@ if test "$_lt_caught_CXX_error" != yes; then
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
                rm -rf $tpldir~
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
-               compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
+               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
                rm -rf $tpldir~
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
-               $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
+               $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
                $RANLIB $oldlib'
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
                rm -rf $tpldir~
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
-               $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
+               $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
                rm -rf $tpldir~
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
-               $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'
+               $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'
              ;;
            *) # Version 6 and above use weak symbols
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'