This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: automake or libtool question


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__/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]