Hello Everyone,

I have an automake target that looks like this:

noinst_LTLIBRARIES = liblocate_paths.la

liblocate_paths_la_SOURCES = \
        locate_paths.c \
        locate_paths.h


liblocate_paths_la_LIBADD =  -L @RPM_PREFIX@/lib -lrpm

Which generates the following libtool command

/bin/sh ../libtool --mode=link gcc  -g -O2   -o liblocate_paths.la  
locate_paths.lo  -L /opt/gsptools/lib -lrpm 

The problem is that when I peek into liblocate_paths.la I find that
dependency_libs to be set to 

dependency_libs=' -L/home/mbletzin/work/package_globus/Base/locater
/usr/lib/librpm.la  -l
popt -L/usr/local/lib -ldb1 -lz -lbz2'

Notice that the location of the rpm library has changed.  Consequently
anybody who links with this library gets the wrong rpm library.

I was wondering if anyone had any ideas why this is happening?

        Thanks
        Michael

P.S I am using GNU libtool 1.3c (1.687 2000/02/03 12:54:29) on Redhat
6.2 beta linux box.

Reply via email to