summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-09-08 17:05:35 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-09-08 18:38:34 +0200
commit4a64f91d5bb5a7a98fdbc9742bbe314648b18930 (patch)
treecbbcac252e29a8b6721eb239fc0d88fdc8f38555
parent4dc77eb2fbe822f67597bd102177a21b8c1985bf (diff)
downloadptxdist-4a64f91d5bb5a7a98fdbc9742bbe314648b18930.tar.gz
ptxdist-4a64f91d5bb5a7a98fdbc9742bbe314648b18930.tar.xz
host-libtirpc: new package
Replacement For Sun RPC. Some distributions now build glibc without it, so libtirpc must be used instead. Provide our own version so it's always available. Build only a static library to avoid conflicts with the system version at runtime. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/host-libtirpc.in5
-rw-r--r--rules/host-libtirpc.make41
2 files changed, 46 insertions, 0 deletions
diff --git a/rules/host-libtirpc.in b/rules/host-libtirpc.in
new file mode 100644
index 000000000..93d8d4757
--- /dev/null
+++ b/rules/host-libtirpc.in
@@ -0,0 +1,5 @@
+## SECTION=hosttools_noprompt
+
+config HOST_LIBTIRPC
+ tristate
+ default y if ALLYES
diff --git a/rules/host-libtirpc.make b/rules/host-libtirpc.make
new file mode 100644
index 000000000..039030958
--- /dev/null
+++ b/rules/host-libtirpc.make
@@ -0,0 +1,41 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_LIBTIRPC) += host-libtirpc
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+HOST_LIBTIRPC_CONF_TOOL := autoconf
+HOST_LIBTIRPC_CONF_OPT := \
+ $(HOST_AUTOCONF) \
+ --disable-gssapi \
+ --disable-shared \
+ --enable-static
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+HOST_LIBTIRPC_PC := $(HOST_LIBTIRPC_PKGDIR)/lib/pkgconfig/libtirpc.pc
+
+$(STATEDIR)/host-libtirpc.install:
+ @$(call targetinfo)
+ @$(call world/install, HOST_LIBTIRPC)
+# # add Libs.private to Libs to fix linking static libtirpc
+ @sed -i "s/Libs:.*/\0`sed -n 's/Libs.private:\(.*\)/\1/p' $(HOST_LIBTIRPC_PC)`/" $(HOST_LIBTIRPC_PC)
+ @$(call touch)
+
+# vim: syntax=make