Changeset 544 for trunk/configure.ac


Ignore:
Timestamp:
Feb 17, 2019, 2:41:49 PM (6 years ago)
Author:
katerina
Message:

Fix for ticket #436 (new gcc compiler options, including LTO).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r539 r544  
    1212dnl start
    1313dnl
    14 AM_INIT_AUTOMAKE(samhain, 4.3.2)
     14AM_INIT_AUTOMAKE(samhain, 4.3.3)
    1515AC_DEFINE([SAMHAIN], 1, [Application is samhain])
    1616AC_CANONICAL_HOST
     
    380380AC_FUNC_STRFTIME
    381381AC_CHECK_FUNCS(memcmp memcpy memmove memset getpwent endpwent fpurge \
     382        explicit_memset explicit_bzero \
    382383        gettimeofday strlcat strlcpy strstr strchr strerror strsignal \
    383384        seteuid setreuid setresuid lstat getwd getcwd ptrace \
     
    706707        GCC_STACK_PROTECT_LIB
    707708        GCC_STACK_PROTECT_CC
    708 dnl   GCC_STACK_CHECK_CC
    709       GCC_PIE_CC
     709        GCC_STACK_CHECK_CC
     710        GCC_PIE_CC
     711        GCC_FLAG_CHECK([-fexceptions])
     712        GCC_FLAG_CHECK([-mcet -fcf-protection])
    710713   fi   
    711714
     
    10381041                  tmp_LIBS=`echo $LIBS | sed 's%\-lauparse%%' `
    10391042                  LIBS="${tmp_LIBS}"
     1043                  AC_MSG_WARN([--enable-static: no support for Linux Auditing System])
    10401044                fi
    10411045
    10421046                if test "x$GCC" = "xyes";
    10431047                then
     1048                   if test -n "`echo "$CFLAGS" | grep "\-flto" 2> /dev/null`"
     1049                   then
     1050                        AC_MSG_ERROR([--enable-static: not compatible with link-time optimisation])
     1051                   fi
    10441052                   case "$host_os" in
    10451053
     
    12061214        [  --with-database=[[mysql|postgresql|oracle|odbc]]     database support [[no]]],
    12071215        [
     1216        if test x"$enable_static" = xyes; then
     1217                AC_MSG_WARN([With --enable-static,  --with-database may fail to compile.])
     1218        fi
    12081219        if test x"$enable_xml_log" != xyes; then
    12091220                AC_MSG_ERROR([With --with-database,  --enable-xml-log is required as well.])
     
    17911802           ;;
    17921803        *)
    1793            CFLAGS="$CFLAGS -Wall -W "
     1804           CFLAGS="$CFLAGS -Wall -W -Werror=implicit-function-declaration "
    17941805           ;;
    17951806     esac
Note: See TracChangeset for help on using the changeset viewer.