[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How to build static and shared library with meson (Was: Bug#959409: pbcopper breaks pbbam)



Hi,

On Sun, May 10, 2020 at 08:10:48PM +0300, Adrian Bunk wrote:
> Control: reassign -1 libpbcopper1.3.0 1.4.0+dfsg-1
> Control: affects -1 src:pbbam
> ...
> $ objdump -p /usr/lib/x86_64-linux-gnu/libpbcopper.so.1.6.0 | grep SONAME
>   SONAME               libpbcopper.so.1.6.0
> 
> With this SONAME, which looks correct if ABI changes with each 1.x.y
> release, the general package naming is correct.

When checking this package I'd like to fix this by using d-shlibs to
make sure that kind of mistake will not happen in future.  Since
d-shlibs is requiring a static library for the -dev package I'd like
to change the build system to provide both shared and static lib.

Unfortunately I'm not familiar with meson build system.  Is there
any easy example to build both libs?

Kind regards

     Andreas.

-- 
http://fam-tille.de


Reply to: