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

shared and static library names differ



Dear mentors,

atm I'm trying to package glfw3 (http://www.glfw.org) library.

The problem is that on unix systems cmake generates shared
library with name libglfw.so.3 (libglfw.so intented to be put
into -dev package) and static library is built with api version
in its name: libglfw3.a

Moreover only one library is allowed to build per cmake
configuration dependent on value of BUILD_SHARED_LIBS
passed to 'cmake' invocation. However I overcome this issue
by duplicating dh_auto_ calls with different --builddirectory
options.

Library source provides template for .pc file which is substituted
with built library name according to selected type of library. Thus
it refers to 'glfw' or 'glfw3' library respectively and cannot be
used interchangeably.

What is the best way to handle this? Is it okay to drop static library
from -dev package?

Regards, Roman.

Reply to: