From 2790599e56d926eb6d59b14ddea61f5c99d2d505 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sat, 11 Mar 2023 04:11:25 +0700 Subject: [PATCH] tests: use -no-install libtool flag to avoid ./lt-* scripts This option should be used for any executables which are used only for testing, or for generating other files and are consequently never installed. By specifying this option, we are telling Libtool that the executable it links will only ever be executed from where it is built in the build tree. Libtool is usually able to considerably speed up the link process for such executables. Change-Id: I9758aaaa56b2453f33f90400342ebd1fd412ec3a --- tests/m2ua/Makefile.am | 1 + tests/mtp/Makefile.am | 2 ++ tests/sccp/Makefile.am | 1 + tests/ss7/Makefile.am | 2 +- tests/vty/Makefile.am | 2 +- tests/xua/Makefile.am | 2 +- 6 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/m2ua/Makefile.am b/tests/m2ua/Makefile.am index b1d52669..6f060c40 100644 --- a/tests/m2ua/Makefile.am +++ b/tests/m2ua/Makefile.am @@ -1,5 +1,6 @@ AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) +AM_LDFLAGS = -no-install EXTRA_DIST = m2ua_test.ok diff --git a/tests/mtp/Makefile.am b/tests/mtp/Makefile.am index d2b46a97..a3f22f10 100644 --- a/tests/mtp/Makefile.am +++ b/tests/mtp/Makefile.am @@ -1,5 +1,7 @@ AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include AM_CFLAGS = -Wall $(LIBOSMOCORE_CFLAGS) +AM_LDFLAGS = -no-install + check_PROGRAMS = mtp_parse_test EXTRA_DIST = mtp_parse_test.ok diff --git a/tests/sccp/Makefile.am b/tests/sccp/Makefile.am index 21f3f050..fc4f0c8e 100644 --- a/tests/sccp/Makefile.am +++ b/tests/sccp/Makefile.am @@ -1,5 +1,6 @@ AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) +AM_LDFLAGS = -no-install EXTRA_DIST = sccp_test.ok diff --git a/tests/ss7/Makefile.am b/tests/ss7/Makefile.am index 1f873dbe..ecc69e0b 100644 --- a/tests/ss7/Makefile.am +++ b/tests/ss7/Makefile.am @@ -1,7 +1,7 @@ AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS) -AM_LDFLAGS = -static +AM_LDFLAGS = -static -no-install LDADD = $(top_builddir)/src/libosmo-sigtran.la \ $(LIBOSMOCORE_LIBS) $(LIBOSMOVTY_LIBS) $(LIBOSMONETIF_LIBS) $(LIBSCTP_LIBS) diff --git a/tests/vty/Makefile.am b/tests/vty/Makefile.am index 7e7a083c..9ed31b00 100644 --- a/tests/vty/Makefile.am +++ b/tests/vty/Makefile.am @@ -1,7 +1,7 @@ AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS) -AM_LDFLAGS = -static +AM_LDFLAGS = -static -no-install LDADD = $(top_builddir)/src/libosmo-sigtran.la \ $(LIBOSMOCORE_LIBS) $(LIBOSMOVTY_LIBS) $(LIBOSMONETIF_LIBS) $(LIBSCTP_LIBS) diff --git a/tests/xua/Makefile.am b/tests/xua/Makefile.am index 92ba76d7..546039c2 100644 --- a/tests/xua/Makefile.am +++ b/tests/xua/Makefile.am @@ -1,7 +1,7 @@ AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS) -AM_LDFLAGS = -static +AM_LDFLAGS = -static -no-install LDADD = $(top_builddir)/src/libosmo-sigtran.la \ $(LIBOSMOCORE_LIBS) $(LIBOSMOVTY_LIBS) $(LIBOSMONETIF_LIBS) $(LIBSCTP_LIBS)