From 59031e0e9f519eacc2a54f982a34f6525ace73fc Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Tue, 19 Apr 2005 14:44:42 +0000 Subject: [PATCH] * 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. --- ChangeLog | 8 ++++++++ config/ltmain.m4sh | 11 +++++++++++ m4/libtool.m4 | 2 ++ 3 files changed, 21 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0299b96b..caa28e99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-04-19 David Edelsohn + + * 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 * tests/demo-hardcode.test: Fix typo. diff --git a/config/ltmain.m4sh b/config/ltmain.m4sh index a43a8ac7..f831bc8a 100644 --- a/config/ltmain.m4sh +++ b/config/ltmain.m4sh @@ -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 diff --git a/m4/libtool.m4 b/m4/libtool.m4 index b23c0022..c6db2e70 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -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]].*)