The static variant of libudev

Asked by Bram Stolk

Is there a reason that the package libudev-dev does not come with a static library?

I expect it to pack a libudev.a file, in addition to the shared objects.

Other libraries (like the libhidapi-hidraw that lives on top of libudev, e.g.) have a static variant in their dev package.

I wonder why this is not the case for libudev.

Question information

English Edit question
Ubuntu systemd Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bernard Stafford (bernard010) said :

Which version of Ubuntu do you have?
Here is the packages for libudev:
Here is the package for libhidapi-hidraw:

Revision history for this message
Bram Stolk (b-stolk) said :

I have Ubuntu 21.10.

I am looking for the static library. The dev package does not have it.

Revision history for this message
Manfred Hampl (m-hampl) said :

As far as I can see on launchpad, starting with Ubuntu precise (12.04) libudev was no longer built from the "udev" source, but has become part of "systemd".

It seems that from that moment onwards the libudev static library (.a and .la) was not made available any more.
Also in Debian the package does not contain a static library.

If you want that to be changed, you most probably have to start at Debian.

Revision history for this message
Bram Stolk (b-stolk) said :

Thank you, I will file a bug report with Debian. I see no reason why there would not be a static lib for this.

Revision history for this message
Manfred Hampl (m-hampl) said :

For reference the bug report:

upstream is strictly against static linking, thus there is no static library anymore and we won't patch downstream to add one.
Those marking as wontfix.

I assume that Ubuntu's point of view in that matter will not deviate from Debian.

Can you help with this problem?

Provide an answer of your own, or ask Bram Stolk for more information if necessary.

To post a message you must log in.