Skip to content

Commit 9bfd4d2

Browse files
flichtenheldcron2
authored andcommitted
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 <frank@lichtenheld.com> Acked-by: Gert Doering <gert@greenie.muc.de> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1204 Message-Id: <20250923122006.12212-1-gert@greenie.muc.de> URL: https://sourceforge.net/p/openvpn/mailman/message/59237450/ Signed-off-by: Gert Doering <gert@greenie.muc.de>
1 parent f32844b commit 9bfd4d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,9 +1388,9 @@ fi
13881388
# required for gcc, but some compilers such as clang need it.
13891389
AC_DEFUN([ACL_CHECK_ADD_COMPILE_FLAGS], [
13901390
old_cflags="$CFLAGS"
1391-
CFLAGS="$1 -Werror $CFLAGS"
1391+
CFLAGS="-Werror $CFLAGS $1"
13921392
AC_MSG_CHECKING([whether the compiler accepts $1])
1393-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [AC_MSG_RESULT([yes])]; CFLAGS="$1 $old_cflags",
1393+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [AC_MSG_RESULT([yes])]; CFLAGS="$old_cflags $1",
13941394
[AC_MSG_RESULT([no]); CFLAGS="$old_cflags"])]
13951395
)
13961396

0 commit comments

Comments
 (0)