]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
configure: Avoid addition assignment operators
authorAchill Gilgenast <fossdd@pwned.life>
Tue, 28 Jan 2025 12:28:48 +0000 (13:28 +0100)
committerFlorian Westphal <fw@strlen.de>
Tue, 28 Jan 2025 13:36:31 +0000 (14:36 +0100)
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 <fossdd@pwned.life>
Signed-off-by: Florian Westphal <fw@strlen.de>
configure.ac

index 2d38a4d4a7850c7850b020c27c7d162c38885c14..0106b3165a25c2a1eb410c54811d917cb10385cc 100644 (file)
@@ -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],