Browse Source

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
changes/21/27521/2
Harald Welte 3 months ago committed by laforge
parent
commit
12eed19066
  1. 6
      libosmocodec.pc.in
  2. 6
      libosmocoding.pc.in
  3. 7
      libosmocore.pc.in
  4. 4
      libosmoctrl.pc.in
  5. 4
      libosmogb.pc.in
  6. 4
      libosmogsm.pc.in
  7. 4
      libosmosim.pc.in
  8. 4
      libosmousb.pc.in
  9. 4
      libosmovty.pc.in

6
libosmocodec.pc.in

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

6
libosmocoding.pc.in

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

7
libosmocore.pc.in

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

4
libosmoctrl.pc.in

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

4
libosmogb.pc.in

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

4
libosmogsm.pc.in

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

4
libosmosim.pc.in

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

4
libosmousb.pc.in

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

4
libosmovty.pc.in

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

Loading…
Cancel
Save