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]
Other format: [Raw text]

Re: FYI: same library installed several times in same directory (PR/350)


>  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





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