Sort of an odd question at the intersection of automake and libtool...
I've got a convenience library where the LDFLAGS includes -R:
noinst_LTLIBRARIES = libsomething.la
...
libsomething_la_LDFLAGS = -Rsomewhere
and I indeed see "-Rsomewhere" appear within libsomething.la's dependency_libs
line the way I expect.
In another directory, I build a program depending on libsomething.la
bin_PROGRAMS = myprog
myprog_LDADD = ../lib/libsomething.la
and then issue 'make install' to install it.
After installation, I'm not seeing '-Rsomething' appear within the installed
binary's rpath according to 'readelf -d myprog'. 'ldd myprog' issued after
emptying my LD_LIBRARY_PATH confirms that -Rsomething isn't present.
Should I expect -R flags provided at convenience library creation time to be
propagated to an installed binary which uses that convenience library? If
not, I'll stop trying. If so, I'll see if I can get a recreate for what
I'm observing.
Thanks,
Rhys