[sane-devel] Makefile.in : libsane.la should use $(libdir) instead of $(libsanedir)

Julien BLACHE jb@jblache.org
Sun, 31 Oct 2004 11:42:46 +0100


>From Makefile.in :

libsane.la: dll.lo dll-s.lo $(EXTRA) $(addsuffix .lo,$(DLL_PRELOAD)) $(LIBOBJS) 
        @$(LIBTOOL) $(MLINK) $(CC) -o $@ $(LDFLAGS) $(BACKENDLIBS)  $^ \ 
                $(addsuffix .lo,$(DLL_PRELOAD_EXTRAS)) @LIBTOOL_LINK_EXTRA@ \ 
                -rpath $(libsanedir) -version-info $(V_MAJOR):$(V_REV):$(V_MINOR) 

This causes libsane.la to contain /usr/lib/sane as its libdir,
although libsane.so is installed into /usr/lib.

libtool will then complain that libsane.la got moved, and will fail to
link any dependent library (itself using libtool).

$(libsanedir) should be changed to $(libdir) in the above; Henning,
can this go in for 1.0.15 ?


Julien BLACHE                                   <http://www.jblache.org> 
<jb@jblache.org>                                  GPG KeyID 0xF5D65169