Changeset 3842 in MondoRescue


Ignore:
Timestamp:
Mar 6, 2024, 2:07:21 AM (3 months ago)
Author:
Bruno Cornec
Message:

Adds more security flags for compilation

File:
1 edited

Legend:

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

    r3630 r3842  
    7474        GCC_MAJ="`gcc -dumpversion 2>&1 | cut -d. -f1`"
    7575        GCC_MIN="`gcc -dumpversion 2>&1 | cut -d. -f2`"
    76         CFLAGS="$CFLAGS -Wall -Wno-return-type -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT"
    77         if test "$GCC_MAJ" -ge "4" && test "$GCC_MIN" -ge "2"; then
    78             CFLAGS="$CFLAGS -Werror=format-security"
    79         fi
     76        CFLAGS="$CFLAGS -Wall -Wno-return-type -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 -Werror=implicit-function-declaration" # -Werror"
    8077        ;;
    8178    *)
Note: See TracChangeset for help on using the changeset viewer.