diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2019-10-06 13:30:25 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-03-10 10:07:39 (GMT) |
commit | f59f443261bdcbce0d26476d197c6a51804281f8 (patch) | |
tree | ce992f85dcd87a60b499f04a6bb454f97527fa9b /libnl-3.0.pc.in | |
parent | b3333e0f7802f985ed2998b42f2544b70976cd00 (diff) | |
download | libnl-f59f443261bdcbce0d26476d197c6a51804281f8.zip libnl-f59f443261bdcbce0d26476d197c6a51804281f8.tar.gz libnl-f59f443261bdcbce0d26476d197c6a51804281f8.tar.bz2 |
build: add Libs.private field in libnl pkg-config file
In order to support static linking, the libnl pkg-config file should
indicate in its Libs.private field the libraries that libnl-3.0.a
requires. The LIBS variable contains the appropriate list of
libraries: -lm in all cases, and -lpthread when pthread support is
enabled. This allows to statically link applications against libnl
properly.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
[Retrieved from:
https://git.buildroot.net/buildroot/tree/package/libnl/0001-build-add-Libs.private-field-in-libnl-pkg-config-fil.patch]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[thaller@redhat.com: btw, "-lm" is not used anymore]
https://github.com/thom311/libnl/pull/229
Diffstat (limited to 'libnl-3.0.pc.in')
-rw-r--r-- | libnl-3.0.pc.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libnl-3.0.pc.in b/libnl-3.0.pc.in index b87e3dc..ddbc999 100644 --- a/libnl-3.0.pc.in +++ b/libnl-3.0.pc.in @@ -7,4 +7,5 @@ Name: libnl Description: Convenience library for netlink sockets Version: @PACKAGE_VERSION@ Libs: -L${libdir} -lnl-@MAJ_VERSION@ +Libs.private: @LIBS@ Cflags: -I${includedir}/libnl@MAJ_VERSION@ |