summaryrefslogtreecommitdiffstats
path: root/rules/host-libtirpc.make
blob: 039030958fa092fa2893e3328e7f6cecdd298158 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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