~connman-maintainers/connman/head

« back to all changes in this revision

Viewing changes to acinclude.m4

  • Committer: Marcel Holtmann
  • Author(s): Denis Kenzior
  • Date: 2023-09-16 12:17:45 UTC
  • Revision ID: git-v1:1a6cbdfa30da24de385ab4fba322055a21647189
build: Make sure --disable-optimization works

acinclude.m4 still adds -O2 and various FORTIFY_SOURCE flags, even if
--disable-optimization is used during configure.  Fix that.

While here, add -fsigned-char and -fno-exceptions flags.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
AC_DEFUN([COMPILER_FLAGS], [
50
50
        if (test "${CFLAGS}" = ""); then
51
 
                CFLAGS="-Wall -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
 
51
                CFLAGS="-Wall -fsigned-char -fno-exceptions"
52
52
        fi
53
53
        if (test "$USE_MAINTAINER_MODE" = "yes"); then
54
54
                CFLAGS+=" -Werror -Wextra"