Changeset bdba3c for util


Ignore:
Timestamp:
May 30, 2008, 1:50:45 PM (18 years ago)
Author:
Frederik Heber <heber@…>
Children:
eefb8e
Parents:
ae0078
Message:

AM_CFLAGS thrown out as warnings are added to CFLAGS in configure-part. Huge changes to make mpi working with given environment variables MPICC and MPILIBS

Location:
util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • util/Makefile.am

    rae0078 rbdba3c  
    3737bin_SCRIPTS = ${scripts}
    3838
    39 AM_CFLAGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self
  • util/configure.ac

    rae0078 rbdba3c  
    3232if ! test x"$enable_debug" = xno; then
    3333        if test x"${enable_debug}" = xyes; then
    34                 CFLAGS="-g3"
    35                 CXXFLAGS="-g3"
     34                CFLAGS="$CFLAGS -g3"
     35                CXXFLAGS="$CXXFLAGS -g3"
    3636        else
    37                 CFLAGS="-g${enable_debug}"
    38                 CXXFLAGS="-g${enable_debug}"
     37                CFLAGS="$CFLAGS -g${enable_debug}"
     38                CXXFLAGS="$CXXFLAGS -g${enable_debug}"
    3939        fi
     40        dnl enable all warnings
     41        CFLAGS="$CFLAGS -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self"
     42        CXXFLAGS="$CXXFLAGS -Wall -W -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self"
    4043  AC_DEFINE(HAVE_DEBUG,1, ["Output debugging info"])
    4144  AC_SUBST(HAVE_DEBUG)
     45else
     46        dnl even without debugging we want some minimal info of something's utterly wrong
     47        CFLAGS="$CFLAGS -Wall"
     48        CXXFLAGS="$CXXFLAGS -Wall"
    4249fi
    4350
Note: See TracChangeset for help on using the changeset viewer.