Changeset 39457 for trunk/Ohana/configure.tcsh
- Timestamp:
- Mar 11, 2016, 10:23:42 PM (10 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
configure.tcsh (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/ohana.20160226 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/configure.tcsh
r39406 r39457 14 14 set memcheck = 0 15 15 set use_tcmalloc = 0 16 set use_gnu 99 = 016 set use_gnu89 = 0 17 17 set no_largefiles = 0 18 18 set extra_safety_checks = 0 … … 90 90 set use_tcmalloc = 1 91 91 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" 94 95 breaksw; 95 96 case --no-largefiles … … 211 212 if ($sanitize_address) set CFLAGS = "$CFLAGS -fsanitize=address" 212 213 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 213 218 # use_gnu99 214 if ($use_gnu99) then 219 if ($use_gnu89 && ($extra_safety_checks == 0)) then 220 set CFLAGS = "$CFLAGS -std=gnu89" 221 else 215 222 set CFLAGS = "$CFLAGS -std=gnu99" 216 else217 set CFLAGS = "$CFLAGS -std=gnu89"218 223 endif 219 224 … … 232 237 # other temp flags 233 238 if ($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" 235 242 endif 236 243 … … 717 724 --enable-profile enable 718 725 --enable-sanitize-address enable 726 --extra-safety-checks enable extra gcc safety checks 719 727 --enable-memcheck enable ohana memory tests 728 --enable-debug-build enable debug build 720 729 --pedantic include -Wall -Werror on compilation 721 730 --use-tcmalloc use the alternate tcmalloc from Google 722 --use-gnu 99 use gnu99 flags to ensure C99 compatibility731 --use-gnu89 use gnu89 for possible backwards compatibility (probably will not work) 723 732 --no-largefiles skip large file compatibility 733 --enable-no-as-needed pass --no-as-needed flag to linker 724 734 725 735 Installation directories: … … 745 755 --no-create 746 756 --no-recursion 757 --disable-shared 758 --enable-shared 759 --disable-static 760 --enable-static 747 761 --sbindir 748 762 --libexecdir
Note:
See TracChangeset
for help on using the changeset viewer.
