Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
scripts/check-remote-protocol.py | 5 ++---
src/Makefile.am | 10 +++++-----
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/scripts/check-remote-protocol.py b/scripts/check-remote-protocol.py
index cf9e3f84a1b..e28fb80cdd1 100644
--- a/scripts/check-remote-protocol.py
+++ b/scripts/check-remote-protocol.py
@@ -32,9 +32,8 @@ import subprocess
import sys
cc = sys.argv[1]
-objext = sys.argv[2]
-proto_lo = sys.argv[3]
-expected = sys.argv[4]
+proto_lo = sys.argv[2]
+expected = sys.argv[3]
proto_lo = proto_lo.replace("/", "/.libs/")
diff --git a/src/Makefile.am b/src/Makefile.am
index 8b0cbb6fc86..e1117029ebc 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -228,25 +228,25 @@ $(srcdir)/remote_protocol-struct \
$(srcdir)/lxc_protocol-struct: \
$(srcdir)/%-struct: remote/libvirt_driver_remote_la-%.lo
$(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(CHECK_REMOTE_PROTOCOL) \
- "$(CC)" "$(OBJEXT)" $< $(@)s
+ "$(CC)" $< $(@)s
$(srcdir)/virnetprotocol-struct $(srcdir)/virkeepaliveprotocol-struct: \
$(srcdir)/%-struct: rpc/libvirt_net_rpc_la-%.lo
$(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(CHECK_REMOTE_PROTOCOL) \
- "$(CC)" "$(OBJEXT)" $< $(@)s
+ "$(CC)" $< $(@)s
if WITH_LXC
$(srcdir)/lxc_monitor_protocol-struct: \
$(srcdir)/%-struct: lxc/libvirt_driver_lxc_impl_la-%.lo
$(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(CHECK_REMOTE_PROTOCOL) \
- "$(CC)" "$(OBJEXT)" $< $(@)s
+ "$(CC)" $< $(@)s
endif WITH_LXC
$(srcdir)/lock_protocol-struct: \
$(srcdir)/%-struct: locking/lockd_la-%.lo
$(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(CHECK_REMOTE_PROTOCOL) \
- "$(CC)" "$(OBJEXT)" $< $(@)s
+ "$(CC)" $< $(@)s
$(srcdir)/admin_protocol-struct: \
$(srcdir)/%-struct: admin/libvirt_admin_la-%.lo
$(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(CHECK_REMOTE_PROTOCOL) \
- "$(CC)" "$(OBJEXT)" $< $(@)s
+ "$(CC)" $< $(@)s
else !WITH_REMOTE
# The $(PROTOCOL_STRUCTS) files must live in git, because they cannot be
--
2.26.2