bug-gnulib
[Top][All Lists]
Advanced

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

Re: C++ libtool build error?


From: Bruno Haible
Subject: Re: C++ libtool build error?
Date: Sat, 13 Mar 2010 13:32:51 +0100
User-agent: KMail/1.9.9

Ralf Wildenhues asks:
> >     Fix problem with automake's definition of CXXLINK.
> >     * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
> >     Reported by Simon Josefsson and Ludovic Courtès.
> 
> Is anyone aware of a way to reproduce the bug fixed by this patch
> with gnulib-tool alone?

Here's how to:
  - Check out the newest gnulib.
  $ ./gnulib-tool --create-testdir --dir=/tmp/testdir --libtool --with-tests 
string
  $ cd /tmp/testdir
  - In configure.ac and gltests/configure.ac, change LT_LANG([C++]) to
    LT_LANG([Windows Resource]).
  $ autoreconf -v
  $ ./configure
  $ make

Results:
/bin/sh ./libtool   --mode=link g++     -o test-string-c++ test-string-c++.o 
../gllib/libgnu.la  
libtool: link: unable to infer tagged configuration
libtool: link: specify a tag with `--tag'
make[4]: *** [test-string-c++] Error 1

Bruno




reply via email to

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