From d3cfb5bff24b282abca10ef5eace4119bae0c89a Mon Sep 17 00:00:00 2001
From: Olivier Dion <olivier.dion@savoirfairelinux.com>
Date: Fri, 22 Oct 2021 11:54:14 -0400
Subject: [PATCH] agent/Makefile.am: Rename agent binary

Guile is confused by agent.scm and agent.  It will try to load the ELF file
instead of the Scheme script when `(use-modules (agent))`.

Change-Id: Ieead4c384f10df9ead351a6ae66b21f708e97424
---
 test/agent/Makefile.am | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/agent/Makefile.am b/test/agent/Makefile.am
index f732f4b6b9..e5a8d2f9b6 100644
--- a/test/agent/Makefile.am
+++ b/test/agent/Makefile.am
@@ -3,9 +3,9 @@ include $(top_srcdir)/globals.mk
 AM_CXXFLAGS += -I$(top_srcdir)/src -I./src $(GUILE_CFLAGS) -rdynamic
 AM_LDFLAGS  += $(GUILE_LIBS)
 
-noinst_PROGRAMS = agent
+noinst_PROGRAMS = agent.exe
 
-agent_SOURCES =                   \
+agent_exe_SOURCES =               \
 	src/main.cpp              \
 	src/utils.h               \
 	src/bindings/bindings.cpp \
@@ -15,4 +15,4 @@ agent_SOURCES =                   \
 	src/bindings/signal.cpp   \
 	src/bindings/signal.h
 
-agent_LDADD = $(top_builddir)/src/libring.la
+agent_exe_LDADD = $(top_builddir)/src/libring.la
-- 
GitLab