trxcon: configure.ac: call LT_INIT after setting CFLAGS

If $CFLAGS is empty prior to calling the LT_INIT, this macro will
set $CFLAGS to "-g -O2".  We don't want implicit flags out of
nowhere, so let's simply move the invocation of LT_INIT down below.

Change-Id: I8d8eb1e3428ffcb84ddd53230fada39328337d15
Related: OS#5749
This commit is contained in:
Vadim Yanitskiy 2022-11-09 03:30:04 +07:00 committed by fixeria
parent 9e9c1c6e29
commit 9e1de2359e
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,6 @@
dnl Process this file with autoconf to produce a configure script
AC_INIT([trxcon], [0.0.0])
AM_INIT_AUTOMAKE
LT_INIT
CFLAGS="$CFLAGS -std=gnu11"
@ -21,6 +20,9 @@ PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm)
dnl checks for header files
AC_HEADER_STDC
dnl init libtool
LT_INIT
AC_ARG_ENABLE(sanitize,
[AS_HELP_STRING(
[--enable-sanitize],