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
This commit is contained in:
Vadim Yanitskiy 2023-03-11 05:02:15 +07:00
parent 642019f288
commit 3c26a1dc3c
7 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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 = \

View File

@ -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 = \

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -11,6 +11,8 @@ AM_CFLAGS = \
$(LIBCARES_CFLAGS) \
$(NULL)
AM_LDFLAGS = -no-install
EXTRA_DIST = \
xid_test.ok \
$(NULL)