libtool
[Top][All Lists]
Advanced

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

Re: libtool 1.4b and $CC = g++ and cygwin32


From: Gary V . Vaughan
Subject: Re: libtool 1.4b and $CC = g++ and cygwin32
Date: Wed, 8 Aug 2001 23:15:50 +0100

On Wednesday 08 August 2001 7:41 pm, Kevin B. Hendricks wrote:
> Hi,
>
> When building the latest aspell (C++ code) using libtool we found that the
> following snippet of libtool (from libtool.m4) fails when using cygwin32
>
>
>     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
>       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends
> here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 >
> $output_objdir/impgen.c~ test -f $output_objdir/impgen.exe || (cd
> $output_objdir && \ if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen
> impgen.c ; \ else $CC -o impgen impgen.c ; fi)~
>       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
>
>
> It fails when $CC is defined to be g++ and not gcc

Did you also set HOST_CC to g++?  Or did it default to that in the absence of 
an explicit setting?  I think the solution is to set HOST_CC=gcc in the 
environment of the build.

> (when you try to compile impgen.c with g++ it barfs with alot of non-ANSI
> C++ error messages).
>
> Thought you might like to know.

Fer sure.  =)O|

Cheers,
        Gary.
-- 
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/  Research Scientist  http://www.oranda.demon.co.uk       ,_())____
  / )=  GNU Hacker          http://www.gnu.org/software/libtool  \'      `&
`(_~)_  Tech' Author        http://sources.redhat.com/autobook   =`---d__/



reply via email to

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