automake
[Top][All Lists]
Advanced

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

Re: automake or libtool question


From: Gary V . Vaughan
Subject: Re: automake or libtool question
Date: Sat, 28 Jul 2001 00:50:11 +0100

On Sunday 22 July 2001 10:29 am, Paul F. Kunz wrote:
>    I'm building a C++ library with gcc 3.0 on a Red Hat Linux 7.1
> system.  Gcc is installed in /usr/local/test.  When I build an
> executable that links to the library, one must also link against
> libstdc++.so in /usr/local/test/lib since the version in /usr/lib has
> a different ABI.
>
>    How do I get the correct path to libstdc++.so built into my
> library with the users needing to set LD_LIBRARY_PATH?

You mean *without* setting LD_LIBRARY_PATH?  I think the following would 
work:

  mylib_la_LIBADD = /usr/local/test/lib/libstc++.so
  mylib_la_LDFLAGS = -R /usr/local/test/lib

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]