aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-03-11 05:02:15 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-03-11 05:02:17 +0700
commit3c26a1dc3cb747a694068d79bfc54be044d16c54 (patch)
tree35b49accc7ad71e6f2268fda66ce93357b48a62d
parent642019f2880f49c030fbcac85f6d6e409002c4f2 (diff)
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
-rw-r--r--tests/gprs/Makefile.am1
-rw-r--r--tests/gtphub/Makefile.am3
-rw-r--r--tests/sgsn/Makefile.am3
-rw-r--r--tests/slhc/Makefile.am1
-rw-r--r--tests/sndcp_xid/Makefile.am1
-rw-r--r--tests/v42bis/Makefile.am1
-rw-r--r--tests/xid/Makefile.am2
7 files changed, 12 insertions, 0 deletions
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)