summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAchill Gilgenast <[email protected]>2025-01-28 13:28:48 +0100
committerFlorian Westphal <[email protected]>2025-01-28 14:36:31 +0100
commit6310639f697d4a570286960c470a6ec8c324be89 (patch)
tree541ec273892c9a1e16594c3e249fee7511d8ac6b
parentb3f3e256c263b9a1db49732696aba0dde084ef5e (diff)
configure: Avoid addition assignment operatorsHEADmaster
For compatability with other /bin/sh like busybox ash, since they don't support the addition assignment operators (+=) and otherwise fails with: ./configure: line 14174: regular_CFLAGS+= -D__UAPI_DEF_ETHHDR=0: not found Signed-off-by: Achill Gilgenast <[email protected]> Signed-off-by: Florian Westphal <[email protected]>
-rw-r--r--configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 2d38a4d4..0106b316 100644
--- a/configure.ac
+++ b/configure.ac
@@ -202,8 +202,8 @@ fi;
pkgdatadir='${datadir}/xtables';
if test "x$enable_profiling" = "xyes"; then
- regular_CFLAGS+=" -fprofile-arcs -ftest-coverage"
- regular_LDFLAGS+=" -lgcov --coverage"
+ regular_CFLAGS="$regular_CFLAGS -fprofile-arcs -ftest-coverage"
+ regular_LDFLAGS="$regular_LDFLAGS -lgcov --coverage"
fi
AC_MSG_CHECKING([whether the build is using musl-libc])
@@ -222,7 +222,7 @@ AC_COMPILE_IFELSE(
AC_MSG_RESULT([${enable_musl_build}])
if test "x$enable_musl_build" = "xyes"; then
- regular_CFLAGS+=" -D__UAPI_DEF_ETHHDR=0"
+ regular_CFLAGS="$regular_CFLAGS -D__UAPI_DEF_ETHHDR=0"
fi
define([EXPAND_VARIABLE],