Ralf Wildenhues wrote: > > line 15: noinst_LTLIBRARIES = libgettextlib.la > > line 268: lib_LTLIBRARIES = libgettextlib.la > > So which should automake use?
The one without 'noinst', because this is the one which can yield an -rpath option. > This is connected with tests/libtool8.test and PR automake/285. In tests/libtool8.test you test that the case where two different installation directories are given for the same library: $(libdir) and $(pkglibdir). These conflict. In the case I'm presenting, it's different. There is no $(noinstdir). One specification gives no installation directory, and the other one gives 1 installation directory. 0 + 1 < 2. There is no conflict. > IOW, we would need a > generalizable definition of what to do with a library connected with > multiple (non-)installations, in the light that Libtool itself only (and > rightly!) allows at most one installation directory. Here is this definition: Take the list of prefixes, remove duplicates, then remove "noinst". Then if more than 1 remains, it's an error. Bruno