>  Harlan> Just to ask, what is the problem if the same library is
>  Harlan> installed in two different places?
> 
> Automake produces only one rule to link the library, and
> therefore doesn't know how to set `-rpath' correctly.  See
> PR/285.

So what is the problem with:

if COND1
 lib_LTLIBRARIES = liba.la
else
if COND2
 pkglib_LTLIBRARIES = liba.la
endif
endif

I'd hate to have to hack around this problem using something like:

Makefile.am:
noinst_LTLIBRARIES = liba.la
if COND1
 SUBDIRS = . cond1
else
if COND2
 SUBDIRS = . cond2
endif

cond1/Makefile.am:
lib_LTLIBRARIES = ../liba.la

cond2/Makefile.am
pkglib_LTLIBRARIES = ../liba.la

(assuming I can get this hack to work).

H




Reply via email to