summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Callu <callu.david@gmail.com>2020-04-07 10:20:49 +0200
committerDavid Callu <callu.david@gmail.com>2020-04-11 01:18:59 +0200
commitb9411f79f59b63d7d363234d795fa5c77cc738c9 (patch)
tree8bbc9b3fd25daffbe0853a68169ff9b6b55bb864
parent8e6a14c63d6b73cde87cb331439f2a4d19cba5b9 (diff)
ice.pc.in: add -lbsd flags when required
-rw-r--r--configure.ac8
-rw-r--r--ice.pc.in1
2 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c4c411a..2f4ca21 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,14 @@ XORG_WITH_LINT
XORG_LINT_LIBRARY([ICE])
LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}"
+
+if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then
+ BSDLIB=-lbsd
+fi
+AC_SUBST(BSDLIB)
+
+
+
AC_CONFIG_FILES([Makefile
doc/Makefile
specs/Makefile
diff --git a/ice.pc.in b/ice.pc.in
index b96c9f8..c88962d 100644
--- a/ice.pc.in
+++ b/ice.pc.in
@@ -9,3 +9,4 @@ Version: @PACKAGE_VERSION@
Requires: xproto
Cflags: -I${includedir}
Libs: -L${libdir} -lICE
+Libs.Private: @BSDLIB@