libtool-patches
[Top][All Lists]
Advanced

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

Re: [RFA] Use full path for system compiler, not just the first word.


From: Bob Friesenhahn
Subject: Re: [RFA] Use full path for system compiler, not just the first word.
Date: Mon, 13 Jan 2003 10:35:01 -0600 (CST)

On Mon, 13 Jan 2003, Robert Boehne wrote:

> Klee,
>
> I think you can get the desired effect by setting CC, CXX, F77, etc. to
> the full path + options that you want to use for your compiler.
> example:
>   ./configure --enable-blah --disable-foo CC="cc -64" CXX="CC -64
> -LANG:std"

This works for Autoconf/Automake, but not for libtool since libtool
must re-parse command line options passed from the Makefile

If the Makefile quoted the CC argument like

 libtool --mode=compile "gcc -B/blah/whatever -m64" "-O" ...

then it could be made to work since the shell will maintain the quoted
arguments as individual units.

Bob


>
> It is normal practice to use CFLAGS to pass compiler flags anyway.
> If these solutions don't work please let us know.
>
> Thanks,
>
> Robert Boehne
>
>
> Klee Dienes wrote:
> >
> > When building the gcc source tree, gcc passes down a rather convoluted
> > compile-command for use by sub-makes to build libraries for the target
> > using the just-built gcc.  Unfortunately, libtool strips off all but
> > the first word of the command, and tries to use the result as a
> > compiler-driver, which doesn't always work (since it's missing -B
> > options and etc.).  The following patch changes libtool to use the full
> > compile-command as the compiler driver (while still correctly setting
> > cc_basename):
> >
> >   ------------------------------------------------------------------------
> >                         Name: libtool-diffs.txt
> >    libtool-diffs.txt    Type: Plain Text (text/plain)
> >                     Encoding: 7bit
> >
> >   ------------------------------------------------------------------------
> >
> >   ------------------------------------------------------------------------
> > _______________________________________________
> > Libtool-patches mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/libtool-patches
>
>
> _______________________________________________
> Libtool-patches mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/libtool-patches
>

======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen





reply via email to

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