mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
libtool.m4: Sort output of 'find' to enable deterministic builds.
* libtool.m4: Sort output of 'find' to enable deterministic builds. * ltmain.sh: Likewise. From-SVN: r262451
This commit is contained in:
parent
339657d2d3
commit
d41cd173e2
@ -1,3 +1,8 @@
|
|||||||
|
2018-06-19 Bernhard M. Wiedemann <bwiedemann@suse.de>
|
||||||
|
|
||||||
|
* libtool.m4: Sort output of 'find' to enable deterministic builds.
|
||||||
|
* ltmain.sh: Likewise.
|
||||||
|
|
||||||
2018-07-03 Segher Boessenkool <segher@kernel.crashing.org>
|
2018-07-03 Segher Boessenkool <segher@kernel.crashing.org>
|
||||||
|
|
||||||
* contrib/config-list.mk: Remove powerpc-linux_paired.
|
* contrib/config-list.mk: Remove powerpc-linux_paired.
|
||||||
|
8
libtool.m4
vendored
8
libtool.m4
vendored
@ -6005,20 +6005,20 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|||||||
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
|
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
|
||||||
rm -rf $tpldir~
|
rm -rf $tpldir~
|
||||||
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
|
$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~
|
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
|
||||||
rm -rf $tpldir~
|
rm -rf $tpldir~
|
||||||
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
|
$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'
|
$RANLIB $oldlib'
|
||||||
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
|
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
|
||||||
rm -rf $tpldir~
|
rm -rf $tpldir~
|
||||||
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
|
$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~
|
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
|
||||||
rm -rf $tpldir~
|
rm -rf $tpldir~
|
||||||
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
|
$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
|
*) # 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'
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
||||||
|
@ -2917,7 +2917,7 @@ func_extract_archives ()
|
|||||||
darwin_file=
|
darwin_file=
|
||||||
darwin_files=
|
darwin_files=
|
||||||
for darwin_file in $darwin_filelist; do
|
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
|
$LIPO -create -output "$darwin_file" $darwin_files
|
||||||
done # $darwin_filelist
|
done # $darwin_filelist
|
||||||
$RM -rf unfat-$$
|
$RM -rf unfat-$$
|
||||||
@ -2932,7 +2932,7 @@ func_extract_archives ()
|
|||||||
func_extract_an_archive "$my_xdir" "$my_xabs"
|
func_extract_an_archive "$my_xdir" "$my_xabs"
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
done
|
||||||
|
|
||||||
func_extract_archives_result="$my_oldobjs"
|
func_extract_archives_result="$my_oldobjs"
|
||||||
|
Loading…
Reference in New Issue
Block a user