libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] list of input files if max_cmd_len exceeded


From: Peter O'Gorman
Subject: Re: [patch] list of input files if max_cmd_len exceeded
Date: Thu, 14 Apr 2005 08:09:44 +0900
User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Edelsohn wrote:
|       If a link command is longer than $max_cmd_len, libtool currently
| breaks up the link command into shorter subcommands by creating
| intermediate reloadable object files.  Because of assumptions by libtool,
| this does not work on all targets.  Additionally, some targets have the
| ability to specify linker input files in a text file specified on the
| command line, which is simpler than creating the reloadable object files.
|
|       This patch adds a general libtool feature to specify input files
| in a separate file, one input file per line, and uses that feature, if it
| is enabled, when the command line is too long.  This patch also augments
| libtool configure to enable that feature on AIX 4 and AIX 5.
|
|       This feature is necessary for GCC to build libgfortran in some AIX
| configurations.
|
|       I would like to apply this feature to libtool so that it can be
| backported to libtool in GCC.
|

This looks like a good idea, but could you please supply a patch against
libtool HEAD where there is already a section to use a linker script if
usign gnu ld.

Also, I'm not sure about:
+         eval libobjs=\"$file_list_spec$filelist\"
+         if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+           cmds=$archive_expsym_cmds
+         else
+           cmds=$archive_cmds
+         fi
+         eval cmds=\"\$cmds~rm $filelist\"

can't you just do this?

output=$file_list_spec$filelist

Peter
- --
Peter O'Gorman - http://www.pogma.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iQCVAwUBQl2mt7iDAg3OZTLPAQLzCwQAlNeoMOnHVJ2sqvMlp+12ui3S1x1kjflQ
wIUvP23lyTVvC2k90Bk6BiCtfikqvsKBGM8e33Q5ZPTG6p0/6NIGax1J93Cp5pie
bC2NxPiTyqR7RgU8Xuj2ua1FMfc9gO3ylUhZnFCJeb4RXbLMe5oQiyV3wvIefs7A
TKgs3sXBDh4=
=zR++
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]