On Apr 14, 2000, Jakub Jelinek <[EMAIL PROTECTED]> wrote:
> The following patch tries to solve it partly by using double quotes arround
> $(*LD) argument to ltconfig, so that ltconfig takes the whole
> gcc -m32
> or whatever as one argument.
This won't do The Right Thing (TM) in general. On many platforms,
libtool bypasses the compiler at link time, so you lose. The right
solution is to use the multi-language libtool, that records which
compiler(s) you're using (including -B and -m switches, if present in
CC when libtool is configured), and uses them or the corresponding
options at link time.
Meanwhile, the closer you can get to being right is to ``quote'' any
compiler flags with libtool's `-Xcompiler' (or `-Wc,') flag.
--
Alexandre Oliva Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me