<p>I am wondering what are the possible value for *_la_LDFLAGS in Makefile.am ? </p>

<p>If I ask this question, it is because I would like the following :</p>

<pre><code>Actual shared library : libA.so (or with the version number I don't care)
Symbolic links :        libA-X.Y.Z.so, libA-X.so, libA.so 
soname :                libA-X.so
</code></pre>

<p>However here is what I get by using the <em>-release</em> flag :</p>

<pre><code>Actual shared library : libA-X.Y.Z.so
Symbolic links :        libA.so 
soname :                libA-X.Y.Z.so    !!! this is not what I want 
</code></pre>

<p>I also tried with no flags at all and got </p>

<pre><code>Actual shared library : libA-0.0.0.so    !!! 0.0.0 and not the real version
Symbolic links :        libA.so, libA-0.so
soname :                libA-0.so        !!! 0.0.0 and not the real version
</code></pre>

<p>How should I do ? which flag should I use ? </p>

<p>Thanks in advance</p>

You should use the
```
-version-info
```
option of Libtool to specify the interface version of the library, but be sure to read
how versioning works
(or
here
for the official manual.)
You can additionally play with
```
-release
```
to make the version number of your package more apparent, but I doubt you will ever get the exact naming you'd like.  Libtool has its own set of rules to define how to name the file and what symlinks to create depending on the system: these should really be regarded as implementation details of how a shared library is installed.