aboutsummaryrefslogtreecommitdiffstats
path: root/libosmocore.pc.in
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-03-29 11:56:43 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2022-03-29 11:59:51 +0200
commitc80a004f0beab7cb49a39226ae6ac6c402853765 (patch)
tree9c2050516e437e3107ec4d283c819c7997f4c79a /libosmocore.pc.in
parent39f47983e10f0bef66e103dd23ad1eca5a95f660 (diff)
configure: Support libsctp < 1.0.17 without libsctp.pc
libsctp 1.0.17 is the first to contain a pkgconfig file in upstream. Current OpenSure Leap 15.3 as well as our OpenEmbedded meta-telephony layer still ship 1.0.16 which contain no pkgconfig file. Let's attempt first finding the .pc file, and otherwise manually link against the lib. Related: https://bugzilla.opensuse.org/show_bug.cgi?id=1197590 Related: https://build.opensuse.org/request/show/965348 Fixes: 12eed19066a11aece6f346b54b85326bc6ba7f0b Change-Id: I241634388c2d32adffebd860c88bdd13002a6af0
Diffstat (limited to 'libosmocore.pc.in')
-rw-r--r--libosmocore.pc.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/libosmocore.pc.in b/libosmocore.pc.in
index 6296417a..d804b8e2 100644
--- a/libosmocore.pc.in
+++ b/libosmocore.pc.in
@@ -7,7 +7,7 @@ Name: Osmocom Core Library
Description: C Utility Library
Version: @VERSION@
Requires: talloc
-Requires.private: libsctp
+Requires.private: @LIBSCTP_PC@
Libs: -L${libdir} -losmocore
-Libs.private: @PTHREAD_LIBS@
+Libs.private: @PTHREAD_LIBS@ @LIBSCTP_LIBS@
Cflags: -I${includedir}/ @PTHREAD_CFLAGS@