Changeset 3879 in MondoRescue for branches/3.3/mondo/configure.ac


Ignore:
Timestamp:
Mar 9, 2024, 3:10:04 AM (4 months ago)
Author:
Bruno Cornec
Message:

Fix all remaining compiler errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/configure.ac

    r3848 r3879  
    1313AC_CONFIG_SRCDIR([src/mondoarchive/mondoarchive.c])
    1414AC_CONFIG_MACRO_DIR([m4])
    15 AC_CONFIG_HEADERS([config.h])
    1615
    17 AC_PREREQ([2.63])
     16AC_PREREQ([2.71])
    1817AC_CANONICAL_HOST
    1918AC_CANONICAL_TARGET
     
    7473        GCC_MAJ="`gcc -dumpversion 2>&1 | cut -d. -f1`"
    7574        GCC_MIN="`gcc -dumpversion 2>&1 | cut -d. -f2`"
    76         CFLAGS="$CFLAGS -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wcast-qual -Wswitch-default -Wswitch-enum -Wconversion -Wno-return-type -Wformat=2 -Werror=implicit-function-declaration -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -fcf-protection -fsanitize=undefined -Wl,-z,defs -Wl,-z,now -Wl,-z,relro" # -Wstrict-prototypes -Werror"
     75
     76        # Just test for dev machine on x86_64 ubsan used for option -fsanitize=undefined
     77        if [ -f /usr/lib64/libubsan.so ]; then
     78            CFLAGS="$CFLAGS -fsanitize=undefined"
     79            HAVE_UBSAN=1
     80        else
     81            HAVE_UBSAN=0
     82        fi
     83
     84        # Just test for dev machine on x86_64 asan used for option -fsanitize=address
     85        if [ -f /usr/lib64/libasan.so ]; then
     86            CFLAGS="$CFLAGS -fsanitize=address"
     87            HAVE_ASAN=1
     88        else
     89            HAVE_ASAN=0
     90        fi
     91
     92        CFLAGS="$CFLAGS -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wcast-qual -Wswitch-default -Wswitch-enum -Wno-return-type -Wformat=2 -Werror=implicit-function-declaration -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT -D_FORTIFY_SOURCE=2 -fstack-clash-protection -fstack-protector-strong -fcf-protection -Wl,-z,defs -Wl,-z,now -Wl,-z,relro -Wno-discarded-qualifiers" # -Wconversion -Wstrict-prototypes -Werror"
    7793        ;;
    7894    *)
     
    103119
    104120# Checks for header files.
    105 AC_HEADER_STDC
     121AC_CHECK_INCLUDES_DEFAULT
     122AC_PROG_EGREP
     123
    106124AC_HEADER_SYS_WAIT
    107125AC_HEADER_STDBOOL
Note: See TracChangeset for help on using the changeset viewer.