clean-up pkg-config files: Make use of "Requires" as documented

According to the pkg-config manual, "Libs" should not contain flags
for _required_ packages.  Instead, they should be expressed via
"Requires".  Let's do that

Change-Id: I2ab1fe8e4bbfc120b471d6c9f2312a89dbc7d42b
This commit is contained in:
Harald Welte 2022-03-14 11:28:14 +01:00 committed by laforge
parent be1338789a
commit 12eed19066
9 changed files with 22 additions and 21 deletions

View File

@ -6,6 +6,6 @@ includedir=@includedir@
Name: Osmocom Codec related utilities Library Name: Osmocom Codec related utilities Library
Description: C Utility Library Description: C Utility Library
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} @TALLOC_LIBS@ -losmocodec Requires: talloc, libosmocore
Cflags: -I${includedir}/ @TALLOC_CFLAGS@ Libs: -L${libdir} -losmocodec
Cflags: -I${includedir}/

View File

@ -6,6 +6,6 @@ includedir=@includedir@
Name: Osmocom L1 transcoding Library Name: Osmocom L1 transcoding Library
Description: C Utility Library Description: C Utility Library
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} @TALLOC_LIBS@ -losmocoding -losmocodec -losmogsm -losmocore Requires: talloc, libosmocore, libosmogsm, libosmocodec
Cflags: -I${includedir}/ @TALLOC_CFLAGS@ Libs: -L${libdir} -losmocoding
Cflags: -I${includedir}/

View File

@ -6,6 +6,7 @@ includedir=@includedir@
Name: Osmocom Core Library Name: Osmocom Core Library
Description: C Utility Library Description: C Utility Library
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} @TALLOC_LIBS@ -losmocore Requires: talloc, libsctp
Libs.private: @PTHREAD_LIBS@ @LIBSCTP_LIBS@ Libs: -L${libdir} -losmocore
Cflags: -I${includedir}/ @TALLOC_CFLAGS@ @PTHREAD_CFLAGS@ Libs.private: @PTHREAD_LIBS@
Cflags: -I${includedir}/ @PTHREAD_CFLAGS@

View File

@ -6,6 +6,6 @@ includedir=@includedir@
Name: Osmocom Control Interface Library Name: Osmocom Control Interface Library
Description: C Utility Library Description: C Utility Library
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} @TALLOC_LIBS@ -losmoctrl -losmogsm -losmocore Requires: talloc, libosmocore, libosmogsm
Libs: -L${libdir} -losmoctrl
Cflags: -I${includedir}/ Cflags: -I${includedir}/

View File

@ -6,6 +6,6 @@ includedir=@includedir@
Name: Osmocom GPRS Gb Library Name: Osmocom GPRS Gb Library
Description: Osmocom GPRS Gb Interface (NS/BSSGP) Library Description: Osmocom GPRS Gb Interface (NS/BSSGP) Library
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} @TALLOC_LIBS@ -losmogb -losmovty -losmocore Requires: libosmocore, libosmovty
Libs: -L${libdir} -losmogb
Cflags: -I${includedir}/ -fno-strict-aliasing Cflags: -I${includedir}/ -fno-strict-aliasing

View File

@ -6,6 +6,6 @@ includedir=@includedir@
Name: Osmocom GSM Core Library Name: Osmocom GSM Core Library
Description: GSM Core Library Description: GSM Core Library
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} @TALLOC_LIBS@ -losmogsm -losmocore Requires: talloc, libosmocore
Libs: -L${libdir} -losmogsm
Cflags: -I${includedir}/ Cflags: -I${includedir}/

View File

@ -6,6 +6,6 @@ includedir=@includedir@
Name: Osmocom SIM card related utilities Library Name: Osmocom SIM card related utilities Library
Description: C Utility Library Description: C Utility Library
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} @TALLOC_LIBS@ -losmosim -losmocore Requires: talloc, libosmocore
Libs: -L${libdir} -losmosim
Cflags: -I${includedir}/ Cflags: -I${includedir}/

View File

@ -6,6 +6,6 @@ includedir=@includedir@
Name: Osmocom libusb (USB) integration Name: Osmocom libusb (USB) integration
Description: C Utility Library Description: C Utility Library
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} @TALLOC_LIBS@ -losmousb -losmocore Requires: talloc, libusb-1.0, libosmocore
Libs: -L${libdir} -losmousb
Cflags: -I${includedir}/ Cflags: -I${includedir}/

View File

@ -6,6 +6,6 @@ includedir=@includedir@
Name: Osmocom VTY Interface Library Name: Osmocom VTY Interface Library
Description: C Utility Library Description: C Utility Library
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} @TALLOC_LIBS@ -losmovty -losmocore Requires: libosmocore
Libs: -L${libdir} -losmovty
Cflags: -I${includedir}/ Cflags: -I${includedir}/