From: "flichtenheld (Code Review)" Date: Mon, 22 Sep 2025 12:27:15 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Z+cVG/nuXNk="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: configure.ac: Make ACL_CHECK_ADD_COMPILE_FLAGS append instead of prepend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --Z+cVG/nuXNk= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. Hello plaisthos, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1204?usp=3Demail to review the following change. Change subject: configure.ac: Make ACL_CHECK_ADD_COMPILE_FLAGS append inste= ad of prepend ...................................................................... configure.ac: Make ACL_CHECK_ADD_COMPILE_FLAGS append instead of prepend The prepend behavior is surprising. If there is a difference in behavior at least make it easy to understand what happens why. Change-Id: I1ce408d4473874d88a348308503527ef7eb8c1ff Signed-off-by: Frank Lichtenheld --- M configure.ac 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/04/1204/1 diff --git a/configure.ac b/configure.ac index 03c5e3b..acda253 100644 --- a/configure.ac +++ b/configure.ac @@ -1387,9 +1387,9 @@ # required for gcc, but some compilers such as clang need it. AC_DEFUN([ACL_CHECK_ADD_COMPILE_FLAGS], [ old_cflags=3D"$CFLAGS" - CFLAGS=3D"$1 -Werror $CFLAGS" + CFLAGS=3D"-Werror $CFLAGS $1" AC_MSG_CHECKING([whether the compiler accepts $1]) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [AC_MSG_RESULT([yes])]; CFLAGS= =3D"$1 $old_cflags", + AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [AC_MSG_RESULT([yes])]; CFLAGS= =3D"$old_cflags $1", [AC_MSG_RESULT([no]); CFLAGS=3D"$old_cflags"])] ) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1204?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I1ce408d4473874d88a348308503527ef7eb8c1ff Gerrit-Change-Number: 1204 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-MessageType: newchange --Z+cVG/nuXNk= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: plaisthos.

flichtenheld would like plaisthos to review this change.

V= iew Change

configure.ac: Make ACL_CHECK_ADD_COMPILE_FLAGS append instea=
d of prepend

The prepend behavior is surprising. If there is a diffe= rence
in behavior at least make it easy to understand what happens
wh= y.

Change-Id: I1ce408d4473874d88a348308503527ef7eb8c1ff
Signed-of= f-by: Frank Lichtenheld <frank@...2641...>
---
M configure.ac1 file changed, 2 insertions(+), 2 deletions(-)

git pull ssh:=
//gerrit.openvpn.net:29418/openvpn refs/changes/04/1204/1
diff --=
git a/configure.ac b/configure.ac
index 03c5e3b..acda253 10= 0644
--- a/configure.ac
+++ b/configure.ac<= /span>
@@ -1387,9 +1387,9 @@
# required for gcc, = but some compilers such as clang need it.
AC_DEFUN([ACL_CH= ECK_ADD_COMPILE_FLAGS], [
old_cflags=3D"$CFLAGS&q= uot;
- CFLAGS=3D&quo= t;$1 -Werror $CFLAGS"
+ CFLAGS=3D"-Werror $CFLAGS $1"
AC_= MSG_CHECKING([whether the compiler accepts $1])
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [AC_MS= G_RESULT([yes])]; CFLAGS=3D"$1 $old_cflags",
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM()= ], [AC_MSG_RESULT([yes])]; CFLAGS=3D"$old_cflags $1",
<= span> [AC_MSG_RESULT([no]); CFLAGS=3D"$old_cflags"])]
)


To vi= ew, visit change 1204. To unsubscribe, or for help writing mail filters, visit = settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1ce408d4473874d88a348308503= 527ef7eb8c1ff
Gerrit-Change-Number: 1204
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-MessageType: newchange
--Z+cVG/nuXNk=--