On Wed, 29 Mar 2000, Kevin Atkinson wrote:
> On 28 Mar 2000, Alexandre Oliva wrote:
>
> > On Mar 28, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote:
> >
> > > On 28 Mar 2000, Alexandre Oliva wrote:
> >
> > > I tried that and it STILL insists on using gcc to make the shared
> > > libraries.
> >
> > Do you mean your Makefile runs:
> >
> > libtool --mode=link g++ lotsastuff.lo -o libmine.la
> >
> > and, nevertheless, libtool still uses gcc for linking? In this case,
> > this may be a bug in the recently-added code to automatically select
> > the most appropriate configuration tag. You may be able to overcome
> > this problem by explicitly telling libtool which tag to use:
> >
> > libtool --tag=CXX --mode=link g++ lotsastuff.lo -o libmine.la
>
> I tried that and this is what I get:
>
> [kevina@kevins-linux pspell-aspell-module]$ /bin/sh ./libtool --tag=CXX
> --mode=link c++ -g -O2 -o libpspell_aspell.la -rpath /usr/local/lib
> -module manager.lo -lpspell -lpspell-impl -laspell
> libtool: ignoring unknown tag CXX <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> rm -fr .libs/libpspell_aspell.a .libs/libpspell_aspell.la
> .libs/libpspell_aspell.lai .libs/libpspell_aspell.so
> .libs/libpspell_aspell.so.0 .libs/libpspell_aspell.so.0.0.0
> gcc -shared .libs/manager.o -L/usr/local/lib /usr/local/lib/libpspell.so
> /usr/local/lib/libpspell-impl.so /usr/local/lib/libaspell.so -lc
> -Wl,-soname -Wl,libpspell_aspell.so.0 -o .libs/libpspell_aspell.so.0.0.0
> (cd .libs && rm -f libpspell_aspell.so.0 && ln -s
> libpspell_aspell.so.0.0.0 libpspell_aspell.so.0)
> (cd .libs && rm -f libpspell_aspell.so && ln -s libpspell_aspell.so.0.0.0
> libpspell_aspell.so)
> ar cru .libs/libpspell_aspell.a manager.o
> creating libpspell_aspell.la
> (cd .libs && rm -f libpspell_aspell.la && ln -s ../libpspell_aspell.la
> libpspell_aspell.la)
Here is my configure.in
dnl Process this file with autoconf to produce a configure script.
AC_INIT(manager.cc)
AM_INIT_AUTOMAKE(pspell-aspell, .10)
dnl Checks for programs.
AC_PROG_CXX
AC_LANG_CPLUSPLUS
AC_LIBTOOL_CXX
AM_PROG_LIBTOOL
AC_OUTPUT(Makefile)
and its output
[kevina@kevins-linux pspell-aspell-module]$ ./configure
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for c++... c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... .C
checking for ranlib... ranlib
checking for strip... strip
checking how to run the C++ preprocessor... c++ -E
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Linux ld.so
checking command to parse /usr/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
updating cache ./config.cache
loading cache ./config.cache
loading cache ./config.cache within ltconfig
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for objdir... .libs
checking for c++ option to produce PIC... -fPIC
checking if c++ PIC flag -fPIC works... yes
checking if c++ static flag -static works... yes
checking if c++ supports -c -o file.o... yes
checking if c++ supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (c++) supports shared libraries...
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Linux ld.so
checking command to parse /usr/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
appending configuration tag "CXX" to libtool <<<<<<<<<<<<<<<<<<<<<
loading cache ./config.cache within ltconfig
(cached) checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Linux ld.so
checking command to parse /usr/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
loading cache ./config.cache
creating ./config.status
creating Makefile
---
Kevin Atkinson
[EMAIL PROTECTED]
http://metalab.unc.edu/kevina/