bmake46 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #!/bin/sh
  2. cd ..
  3. #may be
  4. #-Wshadow -Waggregate-return -Winline
  5. #for feature
  6. #-Wstrict-overflow=4 -Wfloat-equal
  7. #-Wunsafe-loop-optimizations
  8. #-Wnon-virtual-dtor
  9. #-Woverloaded-virtual
  10. #-Wformat=2
  11. #-Wswitch-enum
  12. #-Werror
  13. #for better code
  14. # -Weffc++
  15. #from time to time fix: -Wold-style-cast -Wconversion -Wswitch-enum -Waggregate-return
  16. #from time to time fix: -Winline -Woverloaded-virtual
  17. #need fix: -Wsuggest-attribute=pure -Wsuggest-attribute=const
  18. #need fix: -Wstrict-overflow=5 -fstrict-overflow
  19. #need fix: -Wstrict-aliasing=3
  20. #need fix: -Wdouble-promotion
  21. #need fix: -Wfloat-equal
  22. #need fix: -Wunsafe-loop-optimizations
  23. #need fix: -Wpadded
  24. #need fix: -Wsign-conversion
  25. #prof -pg
  26. dir=`pwd`
  27. export CC=gcc-4.6
  28. export CXX=g++-4.6
  29. export LANG=C
  30. export CXXFLAGS="-Wvariadic-macros -Wvla -Wredundant-decls \
  31. -Wpacked-bitfield-compat -Wcast-qual -Wtrampolines \
  32. -Wsuggest-attribute=noreturn -Wunused -Wstrict-aliasing=2 \
  33. -fstrict-aliasing -Wunreachable-code -Wabi -Wdisabled-optimization \
  34. -Wvolatile-register-var -Winvalid-pch -Wredundant-decls \
  35. -Wnormalized=nfkc -Wmissing-format-attribute -Wmissing-noreturn \
  36. -Wswitch-default -Wsign-promo -Waddress -Wmissing-declarations \
  37. -Wctor-dtor-privacy -Wstrict-null-sentinel -Wlogical-op \
  38. -Wcast-align -Wcast-qual -Wpointer-arith -Wundef \
  39. -Wmissing-include-dirs -Winit-self -pedantic -Wall -ggdb3 -O2 -pipe \
  40. -Wpacked -Wextra -Wstrict-overflow=1 -Wunknown-pragmas -Wwrite-strings \
  41. -Wstack-protector -Wshadow -Wunused -Wunused-macros -Wsynth \
  42. -Wbuiltin-macro-redefined -Wctor-dtor-privacy -Wdeprecated -Wextra \
  43. -Wendif-labels -Wformat=1 -Wimport -Wnon-virtual-dtor -Wpsabi \
  44. -Wsign-promo -Wwrite-strings -D_FORTIFY_SOURCE=2 -Wc++0x-compat \
  45. -Wno-attributes"
  46. autoreconf -i
  47. ./configure --prefix=$dir/run \
  48. --datadir=$dir/run/share/games \
  49. --bindir=$dir/run/bin \
  50. --mandir=$dir/run/share/man \
  51. --enable-memdebug=no \
  52. --enable-tcmalloc=no \
  53. --enable-googleprofiler=no
  54. cd po
  55. #make -j16 update-po 2>../build/make1.log
  56. make -j16 update-gmo 2>../build/make1.log
  57. cd ..
  58. make -j16 2>build/make2.log