IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39337


Ignore:
Timestamp:
Feb 10, 2016, 10:29:29 AM (10 years ago)
Author:
eugene
Message:

add options to enable address sanitizer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/configure.tcsh

    r37985 r39337  
    2727set defines = ""
    2828set profile = 0
     29set sanitize_address = 0
    2930
    3031set root    = ""
     
    7677   set profile = 1
    7778   breaksw;
     79  case --enable-sanitize-address
     80   set sanitize_address = 1
     81   breaksw;
    7882  case --enable-memcheck
    7983   set memcheck = 1
     
    199203if ($profile) set CFLAGS = "$CFLAGS -pg"
    200204
     205# sanitize-address code
     206if ($sanitize_address) set CFLAGS = "$CFLAGS -fsanitize=address"
     207
    201208# use_gnu99
    202209if ($use_gnu99) then
     
    226233endif 
    227234if ($profile) set LDFLAGS = "$LDFLAGS -Wl,--start-group -Wl,-Bstatic -Wl,-Bdynamic"
     235if ($profile) set LDFLAGS = "$LDFLAGS -fsanitizer=address"
    228236
    229237if ($no_as_needed) set LDFLAGS = "$LDFLAGS -Wl,--no-as-needed"
     
    695703 
    696704Configuration:
    697   -h, --help              display this help and exit
    698   --enable-optimize       enable compiler optimization (-O2)
    699   --enable-profile        enable
    700   --enable-memcheck       enable ohana memory tests
    701   --pedantic              include -Wall -Werror on compilation
    702   --use-tcmalloc          use the alternate tcmalloc from Google
    703   --use-gnu99             use gnu99 flags to ensure C99 compatibility
    704   --no-largefiles         skip large file compatibility
     705  -h, --help                display this help and exit
     706  --enable-optimize         enable compiler optimization (-O2)
     707  --enable-profile          enable
     708  --enable-sanitize-address enable
     709  --enable-memcheck         enable ohana memory tests
     710  --pedantic                include -Wall -Werror on compilation
     711  --use-tcmalloc            use the alternate tcmalloc from Google
     712  --use-gnu99               use gnu99 flags to ensure C99 compatibility
     713  --no-largefiles           skip large file compatibility
    705714
    706715Installation directories:
    707   --prefix=PREFIX         install architecture-independent files in PREFIX
    708   --vararch               install with ARCH suffixes for variable architectures
     716  --prefix=PREFIX           install architecture-independent files in PREFIX
     717  --vararch                 install with ARCH suffixes for variable architectures
    709718
    710719Fine tuning of the installation directories:
    711   --bindir=DIR           user executables [PREFIX/bin/$ARCH]
    712   --libdir=DIR           object code libraries [PREFIX/lib/$ARCH]
    713   --includedir=DIR       C header files [PREFIX/include]
    714   --mandir=DIR           man documentation [PREFIX/man]
    715   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
    716   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
     720  --bindir=DIR             user executables [PREFIX/bin/$ARCH]
     721  --libdir=DIR             object code libraries [PREFIX/lib/$ARCH]
     722  --includedir=DIR         C header files [PREFIX/include]
     723  --mandir=DIR             man documentation [PREFIX/man]
     724  --datadir=DIR            read-only architecture-independent data [PREFIX/share]
     725  --sysconfdir=DIR         read-only single-machine data [PREFIX/etc]
    717726
    718727Makefile flags:
Note: See TracChangeset for help on using the changeset viewer.