Skip to contentSkip to conversation

rpc-tirpc: Fix building TI-RPC code

PATCH New Petr Vorel 1 participant 1 message May 13, 2020

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 rpc-tirpc: Fix building TI-RPC code

TIRPC_LIBS variable requires including include/mk/env_pre.mk.

(Not included in Makefile.inc, because all it's users include env_pre.mk themselves).

Fixes c7d2a7458 ("rpc-tirpc: Detect libtirpc with pkg-config")
Fixes 60b20c428 ("rpc: Enable and fix build basic RPC tests with glibc SunRPC")
---
 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/Makefile   | 2 ++
 .../network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/Makefile     | 2 ++
 2 files changed, 4 insertions(+)
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/Makefile +2 -0
index c559153ae..253706e71 100644
@@ -3,6 +3,8 @@
 
 top_srcdir		?= ../../../../../..
 
+include	$(top_srcdir)/include/mk/env_pre.mk
+
 ifeq ($(TIRPC_LIBS),)
 FILTER_OUT_DIRS	+= tirpc
 endif
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/Makefile +2 -0
index 0cbf4e504..95516cd29 100644
@@ -3,6 +3,8 @@
 
 top_srcdir		?= ../../../../../../..
 
+include	$(top_srcdir)/include/mk/env_pre.mk
+
 ifeq ($(TIRPC_LIBS),)
 # glibc does not define registerrpc() in <rpc/rpc.h>
 # registerrpc() is deprecated in libtirpc, it should be replaced by rpc_reg()
Signature · 1 line
2.26.2