From: "cron2 (Code Review)" Date: Tue, 23 Sep 2025 12:57:10 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <1265440dfa996c5cd8c672a99ed299afee4956f2-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="aezn/WoxKa4="; 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: flichtenheld Cc: plaisthos , openvpn-devel --aezn/WoxKa4= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/12= 04?usp=3Demail ) 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 Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1204 Message-Id: <20250923122006.12212-1-gert@...1296...> URL: https://sourceforge.net/p/openvpn/mailman/message/59237450/ Signed-off-by: Gert Doering --- M configure.ac 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 38b14a1..0fc21ee 100644 --- a/configure.ac +++ b/configure.ac @@ -1388,9 +1388,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: 3 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-MessageType: merged --aezn/WoxKa4= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 submitted this change.

View Change

configure.ac: Make ACL_CHECK_ADD_COMPILE_FLAG=
S append instead of prepend

The prepend behavior is surprising. If t= here is a difference
in behavior at least make it easy to understand wha= t happens
why.

Change-Id: I1ce408d4473874d88a348308503527ef7eb8c1= ff
Signed-off-by: Frank Lichtenheld <frank@...2641...>
Acked-by= : Gert Doering <gert@...1296...>
Gerrit URL: https://gerrit.openvp= n.net/c/openvpn/+/1204
Message-Id: <20250923122006.12212-1-gert@...1711...= 96...>
URL: https://sourceforge.net/p/openvpn/mailman/message/5923745= 0/
Signed-off-by: Gert Doering <gert@...1296...>
---
M confi= gure.ac
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 38b14a1..= 0fc21ee 100644
--- a/configure.ac
+++ b/con= figure.ac
@@ -1388,9 +1388,9 @@
# required= for gcc, but some compilers such as clang need it.
AC_DEF= UN([ACL_CHECK_ADD_COMPILE_FLAGS], [
old_cflags=3D"= ;$CFLAGS"
- CFL= AGS=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&qu= ot;])]
)


To view, visit change 1204. To unsubscribe, or for help writing mail filte= rs, visit settings.

<= div itemscope itemtype=3D"http://schema.org/EmailMessage">
<= meta itemprop=3D"name" content=3D"View Change"/>
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1ce408d4473874d88a348308503= 527ef7eb8c1ff
Gerrit-Change-Number: 1204
Gerrit-PatchSet: 3
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: merged
--aezn/WoxKa4=--