summary refs log tree commit diff
path: root/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/Makefile b/sunrpc/Makefile
index 073c19e10a..27c85cfe4c 100644
--- a/sunrpc/Makefile
+++ b/sunrpc/Makefile
@@ -87,7 +87,7 @@ include ../Rules
 $(objpfx)rpcgen: $(addprefix $(objpfx),$(rpcgen-objs)) $(common-objpfx)libc.a
 	$(+link)
 
-rpcgen-cmd = $(dir $(word 2,$^))$(notdir $(word 2,$^))
+rpcgen-cmd = $(built-program-cmd)
 
 # The proper file name is longer than 14 chars, so we install it under
 # a shorter name.  But if the filesystem can handle it, we want to