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.

Also take a chance to add the missing $(COVERAGE_LDFLAGS).

Change-Id: I664a9d5abed2777deee302f9d3afd1bbfde7a844
This commit is contained in:
Vadim Yanitskiy 2023-03-11 04:54:07 +07:00
parent 1866cd93aa
commit fe90aff554
6 changed files with 24 additions and 0 deletions

View File

@ -19,6 +19,11 @@ AM_CFLAGS = \
$(LIBSQLITE3_CFLAGS) \
$(NULL)
AM_LDFLAGS = \
$(COVERAGE_LDFLAGS) \
-no-install \
$(NULL)
EXTRA_DIST = \
db_sms_test.ok \
db_sms_test.err \

View File

@ -9,6 +9,11 @@ AM_CFLAGS = \
$(LIBOSMOCORE_CFLAGS) \
$(NULL)
AM_LDFLAGS = \
$(COVERAGE_LDFLAGS) \
-no-install \
$(NULL)
LDADD = \
$(top_builddir)/src/libmsc/libmsc.a \
$(LIBOSMOCORE_LIBS) \

View File

@ -26,6 +26,8 @@ AM_LDFLAGS = \
-Wl,--wrap=osmo_get_rand_id \
-Wl,--wrap=ran_peers_down_paging \
-Wl,--wrap=call_leg_ensure_ci \
$(COVERAGE_LDFLAGS) \
-no-install \
$(NULL)
LDADD = \

View File

@ -9,6 +9,11 @@ AM_CFLAGS = \
$(LIBOSMOCORE_CFLAGS) \
$(NULL)
AM_LDFLAGS = \
$(COVERAGE_LDFLAGS) \
-no-install \
$(NULL)
LDADD = \
$(top_builddir)/src/libmsc/libmsc.a \
$(LIBOSMOCORE_LIBS) \

View File

@ -19,6 +19,7 @@ AM_CFLAGS = \
AM_LDFLAGS = \
$(COVERAGE_LDFLAGS) \
-no-install \
$(NULL)
EXTRA_DIST = \

View File

@ -19,6 +19,11 @@ AM_CFLAGS = \
$(LIBSQLITE3_CFLAGS) \
$(NULL)
AM_LDFLAGS = \
$(COVERAGE_LDFLAGS) \
-no-install \
$(NULL)
EXTRA_DIST = \
sms_queue_test.ok \
sms_queue_test.err \
@ -51,4 +56,5 @@ sms_queue_test_LDADD = \
sms_queue_test_LDFLAGS = \
-Wl,--wrap=db_sms_get_next_unsent_rr_msisdn \
$(AM_LDFLAGS) \
$(NULL)