aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-10-30 13:20:19 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-10-30 13:20:19 +0300
commit9440f9aefec9a264a8f148718ff0cc2ff25127d5 (patch)
treec85f8e445a9c72eaa72ca8a6f547ca060999f3ae
parent0458e0d2a3fd6cf25a6d3fe4c317933eb5e66125 (diff)
downloadlibmicrohttpd-9440f9aefec9a264a8f148718ff0cc2ff25127d5.tar.gz
libmicrohttpd-9440f9aefec9a264a8f148718ff0cc2ff25127d5.zip
configure: do not pass AM_TESTS_ENVIRONMENT directly
-rw-r--r--configure.ac6
-rw-r--r--doc/examples/Makefile.am2
-rw-r--r--src/examples/Makefile.am2
-rw-r--r--src/microhttpd/Makefile.am2
-rw-r--r--src/testcurl/Makefile.am2
-rw-r--r--src/testcurl/https/Makefile.am2
-rw-r--r--src/testzzuf/Makefile.am2
7 files changed, 15 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 2bf5bbe7..68d1e05f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3616,7 +3616,7 @@ AS_VAR_IF([[enable_asserts]], [["yes"]],
3616) 3616)
3617 3617
3618AS_UNSET([enabled_sanitizers]) 3618AS_UNSET([enabled_sanitizers])
3619AM_TESTS_ENVIRONMENT="" 3619TESTS_ENVIRONMENT_ac=""
3620AM_ASAN_OPTIONS="" 3620AM_ASAN_OPTIONS=""
3621AM_UBSAN_OPTIONS="" 3621AM_UBSAN_OPTIONS=""
3622AM_LSAN_OPTIONS="" 3622AM_LSAN_OPTIONS=""
@@ -4105,7 +4105,7 @@ int main(void)
4105 AS_VAR_IF([enable_san_leak], ["yes"], 4105 AS_VAR_IF([enable_san_leak], ["yes"],
4106 [AM_LSAN_OPTIONS="use_unaligned=1"] 4106 [AM_LSAN_OPTIONS="use_unaligned=1"]
4107 ) 4107 )
4108 AM_TESTS_ENVIRONMENT='\ 4108 TESTS_ENVIRONMENT_ac='\
4109 ASAN_OPTIONS="$(AM_ASAN_OPTIONS)" ; export ASAN_OPTIONS ; \ 4109 ASAN_OPTIONS="$(AM_ASAN_OPTIONS)" ; export ASAN_OPTIONS ; \
4110 UBSAN_OPTIONS="$(AM_UBSAN_OPTIONS)" ; export UBSAN_OPTIONS ; \ 4110 UBSAN_OPTIONS="$(AM_UBSAN_OPTIONS)" ; export UBSAN_OPTIONS ; \
4111 LSAN_OPTIONS="$(AM_LSAN_OPTIONS)" ; export LSAN_OPTIONS ;' 4111 LSAN_OPTIONS="$(AM_LSAN_OPTIONS)" ; export LSAN_OPTIONS ;'
@@ -4132,7 +4132,7 @@ AM_CONDITIONAL([USE_SANITIZERS],
4132AC_SUBST([AM_ASAN_OPTIONS]) 4132AC_SUBST([AM_ASAN_OPTIONS])
4133AC_SUBST([AM_UBSAN_OPTIONS]) 4133AC_SUBST([AM_UBSAN_OPTIONS])
4134AC_SUBST([AM_LSAN_OPTIONS]) 4134AC_SUBST([AM_LSAN_OPTIONS])
4135AC_SUBST([AM_TESTS_ENVIRONMENT]) 4135AC_SUBST([TESTS_ENVIRONMENT_ac])
4136 4136
4137MHD_LIB_LDFLAGS="$MHD_LIB_LDFLAGS" 4137MHD_LIB_LDFLAGS="$MHD_LIB_LDFLAGS"
4138 4138
diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
index cdb787d9..c7a24354 100644
--- a/doc/examples/Makefile.am
+++ b/doc/examples/Makefile.am
@@ -9,6 +9,8 @@ AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@
9 9
10AM_LDFLAGS = $(LDFLAGS_ac) 10AM_LDFLAGS = $(LDFLAGS_ac)
11 11
12AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac)
13
12if USE_COVERAGE 14if USE_COVERAGE
13 AM_CFLAGS += --coverage 15 AM_CFLAGS += --coverage
14endif 16endif
diff --git a/src/examples/Makefile.am b/src/examples/Makefile.am
index c222b5db..7946745a 100644
--- a/src/examples/Makefile.am
+++ b/src/examples/Makefile.am
@@ -12,6 +12,8 @@ AM_LDFLAGS = $(LDFLAGS_ac)
12 12
13MHD_CPU_COUNT_DEF = -DMHD_CPU_COUNT=$(CPU_COUNT) 13MHD_CPU_COUNT_DEF = -DMHD_CPU_COUNT=$(CPU_COUNT)
14 14
15AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac)
16
15if USE_COVERAGE 17if USE_COVERAGE
16 AM_CFLAGS += --coverage 18 AM_CFLAGS += --coverage
17endif 19endif
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am
index c25abab7..8e6e623a 100644
--- a/src/microhttpd/Makefile.am
+++ b/src/microhttpd/Makefile.am
@@ -8,6 +8,8 @@ AM_CFLAGS = $(CFLAGS_ac) $(HIDDEN_VISIBILITY_CFLAGS)
8 8
9AM_LDFLAGS = $(LDFLAGS_ac) 9AM_LDFLAGS = $(LDFLAGS_ac)
10 10
11AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac)
12
11lib_LTLIBRARIES = \ 13lib_LTLIBRARIES = \
12 libmicrohttpd.la 14 libmicrohttpd.la
13 15
diff --git a/src/testcurl/Makefile.am b/src/testcurl/Makefile.am
index 11a489c3..1d198976 100644
--- a/src/testcurl/Makefile.am
+++ b/src/testcurl/Makefile.am
@@ -15,6 +15,8 @@ AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@
15 15
16AM_LDFLAGS = $(LDFLAGS_ac) 16AM_LDFLAGS = $(LDFLAGS_ac)
17 17
18AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac)
19
18if USE_COVERAGE 20if USE_COVERAGE
19 AM_CFLAGS += -fprofile-arcs -ftest-coverage 21 AM_CFLAGS += -fprofile-arcs -ftest-coverage
20endif 22endif
diff --git a/src/testcurl/https/Makefile.am b/src/testcurl/https/Makefile.am
index 324076ef..324a5314 100644
--- a/src/testcurl/https/Makefile.am
+++ b/src/testcurl/https/Makefile.am
@@ -16,6 +16,8 @@ AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@
16 16
17AM_LDFLAGS = $(LDFLAGS_ac) 17AM_LDFLAGS = $(LDFLAGS_ac)
18 18
19AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac)
20
19if USE_COVERAGE 21if USE_COVERAGE
20 AM_CFLAGS += --coverage 22 AM_CFLAGS += --coverage
21endif 23endif
diff --git a/src/testzzuf/Makefile.am b/src/testzzuf/Makefile.am
index 12154dc2..d82d04e4 100644
--- a/src/testzzuf/Makefile.am
+++ b/src/testzzuf/Makefile.am
@@ -10,6 +10,8 @@ AM_CFLAGS = $(CFLAGS_ac) @LIBGCRYPT_CFLAGS@
10 10
11AM_LDFLAGS = $(LDFLAGS_ac) 11AM_LDFLAGS = $(LDFLAGS_ac)
12 12
13AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac)
14
13if USE_COVERAGE 15if USE_COVERAGE
14 AM_CFLAGS += -fprofile-arcs -ftest-coverage 16 AM_CFLAGS += -fprofile-arcs -ftest-coverage
15endif 17endif