configure-Avoid-addition-assignment-operators.patch (1411B)
1 Patch-Source: https://lore.kernel.org/netfilter-devel/D711RJX8FZM8.1ZZRJ5PYBRMID@pwned.life/ 2 --- 3 From a81896ac8c0fcc73ee52603748f876375906cead Mon Sep 17 00:00:00 2001 4 From: fossdd <fossdd@pwned.life> 5 Date: Mon, 13 Jan 2025 16:08:34 +0100 6 Subject: [PATCH] configure: Avoid addition assignment operators 7 8 For compatability with other /bin/sh like busybox ash, since they don't 9 support the addition assignment operators (+=) and otherwise fails with: 10 11 ./configure: line 14174: regular_CFLAGS+= -D__UAPI_DEF_ETHHDR=0: not found 12 13 Signed-off-by: fossdd <fossdd@pwned.life> 14 --- 15 configure.ac | 6 +++--- 16 1 file changed, 3 insertions(+), 3 deletions(-) 17 18 diff --git a/configure.ac b/configure.ac 19 index 2d38a4d4..0106b316 100644 20 --- a/configure.ac 21 +++ b/configure.ac 22 @@ -202,8 +202,8 @@ fi; 23 pkgdatadir='${datadir}/xtables'; 24 25 if test "x$enable_profiling" = "xyes"; then 26 - regular_CFLAGS+=" -fprofile-arcs -ftest-coverage" 27 - regular_LDFLAGS+=" -lgcov --coverage" 28 + regular_CFLAGS="$regular_CFLAGS -fprofile-arcs -ftest-coverage" 29 + regular_LDFLAGS="$regular_LDFLAGS -lgcov --coverage" 30 fi 31 32 AC_MSG_CHECKING([whether the build is using musl-libc]) 33 @@ -222,7 +222,7 @@ AC_COMPILE_IFELSE( 34 AC_MSG_RESULT([${enable_musl_build}]) 35 36 if test "x$enable_musl_build" = "xyes"; then 37 - regular_CFLAGS+=" -D__UAPI_DEF_ETHHDR=0" 38 + regular_CFLAGS="$regular_CFLAGS -D__UAPI_DEF_ETHHDR=0" 39 fi 40 41 define([EXPAND_VARIABLE], 42 -- 43 2.48.0 44