]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* config/ltmain.m4sh (func_mode_link): If command exceeds
authorDavid Edelsohn <dje@watson.ibm.com>
Tue, 19 Apr 2005 14:44:42 +0000 (14:44 +0000)
committerPeter O'Gorman <peter@pogma.com>
Tue, 19 Apr 2005 14:44:42 +0000 (14:44 +0000)
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
config/ltmain.m4sh
m4/libtool.m4

index 0299b96bca0887dd482f422c67b66443e377e4fd..caa28e997603daaef166ba939721c86410318555 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index a43a8ac7f74a08894c4f39e55da12280257a55c5..f831bc8a0dc89bed775729701863cd4b386bf84d 100644 (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
index b23c0022ea27f3f587fa456dc3fc20d05dec3c0a..c6db2e70843d921e7bf0b659b6033620cf395c2e 100644 (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]].*)