IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 11, 2016, 10:23:42 PM (10 years ago)
Author:
eugene
Message:

modify to pass with extremely pedantic build; force consistency for signed vs unsigned and int sizes; various relastro updates

Location:
trunk/Ohana
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana

  • trunk/Ohana/configure.tcsh

    r39406 r39457  
    1414set memcheck = 0
    1515set use_tcmalloc = 0
    16 set use_gnu99 = 0
     16set use_gnu89 = 0
    1717set no_largefiles = 0
    1818set extra_safety_checks = 0
     
    9090   set use_tcmalloc = 1
    9191   breaksw;
    92   case --use-gnu99
    93    set use_gnu99 = 1
     92  case --use-gnu89
     93   set use_gnu89 = 1
     94   echo "---- warning : gnu89 is now deprecated"
    9495   breaksw;
    9596  case --no-largefiles
     
    211212if ($sanitize_address) set CFLAGS = "$CFLAGS -fsanitize=address"
    212213
     214# gnu c99 fails due to missing flockfile prototype
     215# we are forced to used gnu99
     216# -std=gnu89 fails with -pedantic tests because we use VA_ARGS in macros (allowed by gnu but not C89)
     217
    213218# use_gnu99
    214 if ($use_gnu99) then
     219if ($use_gnu89 && ($extra_safety_checks == 0)) then
     220    set CFLAGS = "$CFLAGS -std=gnu89"
     221else
    215222    set CFLAGS = "$CFLAGS -std=gnu99"
    216 else
    217     set CFLAGS = "$CFLAGS -std=gnu89"
    218223endif
    219224
     
    232237# other temp flags
    233238if ($extra_safety_checks) then
    234   set CPPFLAGS = "$CPPFLAGS -fstack-check -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -fno-strict-aliasing -Wextra -pedantic"
     239  set CPPFLAGS = "$CPPFLAGS -fstack-check -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -fno-strict-aliasing -pedantic"
     240  set CPPFLAGS = "$CPPFLAGS -Wclobbered -Wempty-body -Wignored-qualifiers -Wmissing-field-initializers -Wmissing-parameter-type -Wold-style-declaration -Woverride-init -Wtype-limits -Wuninitialized -Wunused-parameter -Wunused-but-set-parameter"
     241  set CPPFLAGS = "$CPPFLAGS -Wsign-compare"
    235242endif
    236243
     
    717724  --enable-profile          enable
    718725  --enable-sanitize-address enable
     726  --extra-safety-checks     enable extra gcc safety checks
    719727  --enable-memcheck         enable ohana memory tests
     728  --enable-debug-build      enable debug build
    720729  --pedantic                include -Wall -Werror on compilation
    721730  --use-tcmalloc            use the alternate tcmalloc from Google
    722   --use-gnu99               use gnu99 flags to ensure C99 compatibility
     731  --use-gnu89               use gnu89 for possible backwards compatibility (probably will not work)
    723732  --no-largefiles           skip large file compatibility
     733  --enable-no-as-needed     pass --no-as-needed flag to linker
    724734
    725735Installation directories:
     
    745755  --no-create
    746756  --no-recursion
     757  --disable-shared
     758  --enable-shared
     759  --disable-static
     760  --enable-static
    747761  --sbindir
    748762  --libexecdir
Note: See TracChangeset for help on using the changeset viewer.