Re: [patch #10393] Fix shared library support on Android

Roumen Petrov <[email protected]> Thu, 21 Sep 2023 09:34:46 +0300
Newsgroups gmane.comp.gnu.libtool.patches
Message-ID <[email protected]>
Bruno Haible wrote:
> URL:
>    <https://savannah.gnu.org/patch/?10393>
> 
[SNIP]
> 
> 1) On this platform, libtool is configured to relink libraries during "make
> install". This leads to a problem during the installation of libgettextsrc:
> The relink command that libtool emits has the form
>      
>    $CC -shared -fPIC -DPIC .libs/*.o -L$(libdir) ... -lgettextlib ... -o
> .libs/libgettextsrc-@[email protected]
>      
> The option -lgettextlib resolves to $(libdir)/libgettextlib.a, not to
> $(libdir)/libgettextlib-@[email protected]. 
[SNIP]

I cannot understand this.
If high level dependency is to lib FOO , i.e. -lFOO  why libtool should emit command lFOO-@VERSION@?

Android does not use "versioning" scheme.


> 2) The installed executables don't have a RUNPATH property that points to the
> directory that contains the shared libraries. Thus these executables don't
> run. 
It seems to me this is correct.
On Android is expected "relocatable" library and executable. Hard coded search path are not expected.


Roumen