]> git.tuebingen.mpg.de Git - lopsub.git/commit
Create a dynamic library.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 31 Mar 2019 13:32:42 +0000 (15:32 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 22 Apr 2019 14:53:32 +0000 (16:53 +0200)
commitc23d59fc4b6d75a7255f0341c68c9142460f9642
tree2a5b18c74a5440575108cc3a73d434a88e7fabef
parent0cfd2b26c29859490b67351266b90702f7aac0ff
Create a dynamic library.

As pointed out by Adam Borowski, static linking makes updates tedious.
This patch switches the package over to create a dynamic library
instead.

We have to specify -fPIC for compiling and --shared for linking. The
shared object is called liblopsub.so.X.Y.Z, where X, Y, and Z are
the digits of the version string as created from the git revision by
the version-gen.sh script. The soname for the linker to put into each
executable which is linked against lopsub is liblopsub.so.$X.

The install target is modified to install liblopsub.so.X.Y.Z instead
of liblopsub.a, and it also creates the usual symbolic links for
shared libraries. It does not run ldconfig, though.

Requested-by: Adam Borowski <kilobyte@angband.pl>
.gitignore
Makefile