From ba8aff571e5d61c63bf7e28ae8b73836c7b8b402 Mon Sep 17 00:00:00 2001 From: nrensen Date: Mon, 19 Jul 2021 23:57:13 +0800 Subject: [PATCH] [mod_commands] OpenBSD compat --- src/mod/applications/mod_commands/Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_commands/Makefile.am b/src/mod/applications/mod_commands/Makefile.am index 60d4aa13bd..18d5832063 100644 --- a/src/mod/applications/mod_commands/Makefile.am +++ b/src/mod/applications/mod_commands/Makefile.am @@ -7,9 +7,13 @@ mod_commands_la_CFLAGS = $(AM_CFLAGS) mod_commands_la_LIBADD = $(switch_builddir)/libfreeswitch.la mod_commands_la_LDFLAGS = -avoid-version -module -no-undefined -shared +noinst_LTLIBRARIES = libmodcommands.la +libmodcommands_la_SOURCES = $(mod_commands_la_SOURCES) +libmodcommands_la_CFLAGS = $(mod_commands_la_CFLAGS) + noinst_PROGRAMS = test/test_mod_commands test_test_mod_commands_CFLAGS = $(SWITCH_AM_CFLAGS) -I../ -DSWITCH_TEST_BASE_DIR_FOR_CONF=\"${abs_builddir}/test\" -DSWITCH_TEST_BASE_DIR_OVERRIDE=\"${abs_builddir}/test\" test_test_mod_commands_LDFLAGS = -avoid-version -no-undefined $(SWITCH_AM_LDFLAGS) -test_test_mod_commands_LDADD = mod_commands.la $(switch_builddir)/libfreeswitch.la +test_test_mod_commands_LDADD = libmodcommands.la $(switch_builddir)/libfreeswitch.la TESTS = $(noinst_PROGRAMS)