* config/ltmain.m4sh (func_mode_link): If command exceeds

max_cmd_len and file_list_spec exists, write list of input files
to temporary file.
* m4/libtool.m4 (_LT_LINKER_SHLIBS, aix[45]): Define file_list_spec.
(_LT_LANG_CXX_CONFIG, aix[45]): Define file_list_spec.
This commit is contained in:
David Edelsohn 2005-04-19 14:44:42 +00:00 committed by Peter O'Gorman
parent d62ad2b24d
commit 59031e0e9f
3 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2005-04-19 David Edelsohn <dje@watson.ibm.com>
* config/ltmain.m4sh (func_mode_link): If command exceeds
max_cmd_len and file_list_spec exists, write list of input files
to temporary file.
* m4/libtool.m4 (_LT_LINKER_SHLIBS, aix[45]): Define file_list_spec.
(_LT_LANG_CXX_CONFIG, aix[45]): Define file_list_spec.
2005-04-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* tests/demo-hardcode.test: Fix typo.

View File

@ -5106,6 +5106,17 @@ EOF
$ECHO \""$obj"\" >> $output
done
$ECHO ')' >> $output
delfiles="$delfiles $output"
elif test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
output=${output_objdir}/${output_la}.lnk
func_echo "creating linker input file list: $output"
: > $output
for obj in $save_libobjs
do
$ECHO "$obj" >> $output
done
delfiles="$delfiles $output"
output=\"$file_list_spec$filelist\"
else
func_echo "creating reloadable object files..."
output=$output_objdir/$output_la-${k}.$objext

2
m4/libtool.m4 vendored
View File

@ -3851,6 +3851,7 @@ _LT_EOF
_LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
_LT_TAGVAR(link_all_deplibs, $1)=yes
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
if test "$GCC" = yes; then
case $host_os in aix4.[[012]]|aix4.[[012]].*)
@ -4820,6 +4821,7 @@ if test "$_lt_caught_CXX_error" != yes; then
_LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
_LT_TAGVAR(link_all_deplibs, $1)=yes
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
if test "$GXX" = yes; then
case $host_os in aix4.[[012]]|aix4.[[012]].*)