IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39397


Ignore:
Timestamp:
Feb 26, 2016, 6:25:27 AM (10 years ago)
Author:
eugene
Message:

add option for extra compiler checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/configure.tcsh

    r39337 r39397  
    1616set use_gnu99 = 0
    1717set no_largefiles = 0
     18set extra_safety_checks = 0
    1819
    1920set prefix  = ""
     
    8081   set sanitize_address = 1
    8182   breaksw;
     83  case --extra-safety-checks
     84   set extra_safety_checks = 1
     85   breaksw;
    8286  case --enable-memcheck
    8387   set memcheck = 1
     
    200204if ($optimize) set CFLAGS = "-O2"
    201205
     206# other temp flags:
    202207# profiler code
    203208if ($profile) set CFLAGS = "$CFLAGS -pg"
     
    224229  set CPPFLAGS = ""
    225230endif 
     231
     232# other temp flags
     233if ($extra_safety_checks) then
     234  set CPPFLAGS = "$CPPFLAGS -fstack-check -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2"
     235endif
    226236
    227237if ($pedantic) set CPPFLAGS = "$CPPFLAGS -Wall -Werror"
Note: See TracChangeset for help on using the changeset viewer.