From 3c26a1dc3cb747a694068d79bfc54be044d16c54 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sat, 11 Mar 2023 05:02:15 +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: I8af6a38d7abbf06aa8268981c80c3bfda2f80a27 --- tests/gprs/Makefile.am | 1 + tests/gtphub/Makefile.am | 3 +++ tests/sgsn/Makefile.am | 3 +++ tests/slhc/Makefile.am | 1 + tests/sndcp_xid/Makefile.am | 1 + tests/v42bis/Makefile.am | 1 + tests/xid/Makefile.am | 2 ++ 7 files changed, 12 insertions(+) diff --git a/tests/gprs/Makefile.am b/tests/gprs/Makefile.am index f90fd6e6e..ddfd2aec0 100644 --- a/tests/gprs/Makefile.am +++ b/tests/gprs/Makefile.am @@ -1,5 +1,6 @@ AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOABIS_CFLAGS) +AM_LDFLAGS = -no-install EXTRA_DIST = gprs_test.ok diff --git a/tests/gtphub/Makefile.am b/tests/gtphub/Makefile.am index 6bb1a56cc..22b2a522c 100644 --- a/tests/gtphub/Makefile.am +++ b/tests/gtphub/Makefile.am @@ -12,6 +12,8 @@ AM_CFLAGS = \ $(LIBGTP_CFLAGS) \ $(NULL) +AM_LDFLAGS = -no-install + EXTRA_DIST = \ gtphub_test.ok \ $(NULL) @@ -28,6 +30,7 @@ gtphub_test_LDFLAGS = \ -Wl,--wrap=gtphub_resolve_ggsn_addr \ -Wl,--wrap=gtphub_ares_init \ -Wl,--wrap=gtphub_write \ + $(AM_LDFLAGS) \ $(NULL) gtphub_test_LDADD = \ diff --git a/tests/sgsn/Makefile.am b/tests/sgsn/Makefile.am index d22a8d91f..c6c1f4a68 100644 --- a/tests/sgsn/Makefile.am +++ b/tests/sgsn/Makefile.am @@ -22,6 +22,8 @@ AM_CFLAGS += \ $(NULL) endif +AM_LDFLAGS = -no-install + EXTRA_DIST = \ sgsn_test.ok \ $(NULL) @@ -45,6 +47,7 @@ sgsn_test_LDFLAGS = \ -Wl,--wrap=gprs_subscr_request_update_location \ -Wl,--wrap=gprs_subscr_request_auth_info \ -Wl,--wrap=osmo_gsup_client_send \ + $(AM_LDFLAGS) \ $(NULL) sgsn_test_LDADD = \ diff --git a/tests/slhc/Makefile.am b/tests/slhc/Makefile.am index 0167f444a..33cb7faac 100644 --- a/tests/slhc/Makefile.am +++ b/tests/slhc/Makefile.am @@ -1,5 +1,6 @@ AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBCARES_CFLAGS) +AM_LDFLAGS = -no-install EXTRA_DIST = slhc_test.ok diff --git a/tests/sndcp_xid/Makefile.am b/tests/sndcp_xid/Makefile.am index 4513c0581..c4702b893 100644 --- a/tests/sndcp_xid/Makefile.am +++ b/tests/sndcp_xid/Makefile.am @@ -1,5 +1,6 @@ AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBCARES_CFLAGS) +AM_LDFLAGS = -no-install EXTRA_DIST = sndcp_xid_test.ok diff --git a/tests/v42bis/Makefile.am b/tests/v42bis/Makefile.am index 56b31f62f..0e544a684 100644 --- a/tests/v42bis/Makefile.am +++ b/tests/v42bis/Makefile.am @@ -1,5 +1,6 @@ AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBCARES_CFLAGS) +AM_LDFLAGS = -no-install EXTRA_DIST = v42bis_test.ok diff --git a/tests/xid/Makefile.am b/tests/xid/Makefile.am index d3c205e07..d3a260bca 100644 --- a/tests/xid/Makefile.am +++ b/tests/xid/Makefile.am @@ -11,6 +11,8 @@ AM_CFLAGS = \ $(LIBCARES_CFLAGS) \ $(NULL) +AM_LDFLAGS = -no-install + EXTRA_DIST = \ xid_test.ok \ $(NULL)