bmake0 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/sh
  2. cd ..
  3. dir=`pwd`
  4. export CC=gcc
  5. export CXX=g++
  6. export LANG=C
  7. export CXXFLAGS="-Wvariadic-macros -Wvla -Wredundant-decls \
  8. -Wpacked-bitfield-compat -Wtrampolines \
  9. -Wsuggest-attribute=noreturn -Wunused -Wstrict-aliasing=2 \
  10. -fstrict-aliasing -Wunreachable-code -Wabi -Wdisabled-optimization \
  11. -Wvolatile-register-var -Winvalid-pch -Wredundant-decls \
  12. -Wnormalized=nfkc -Wmissing-format-attribute -Wmissing-noreturn \
  13. -Wswitch-default -Wsign-promo -Waddress -Wmissing-declarations \
  14. -Wctor-dtor-privacy -Wstrict-null-sentinel -Wlogical-op \
  15. -Wcast-align -Wpointer-arith -Wundef \
  16. -Wmissing-include-dirs -Winit-self -pedantic -Wall -ggdb3 -O0 -pipe \
  17. -Wpacked -Wextra -Wstrict-overflow=1 -Wunknown-pragmas -Wwrite-strings \
  18. -Wstack-protector -Wshadow -Wunused-macros -Wsynth \
  19. -Wbuiltin-macro-redefined -Wctor-dtor-privacy -Wdeprecated -Wextra \
  20. -Wendif-labels -Wformat=1 -Wimport -Wnon-virtual-dtor -Wpsabi \
  21. -Wsign-promo -Wwrite-strings -D_FORTIFY_SOURCE=2 -Wc++11-compat -std=c++0x \
  22. -Wdelete-non-virtual-dtor -Wmaybe-uninitialized -Wunused-local-typedefs \
  23. -Wvector-operation-performance -Wfree-nonheap-object -Winvalid-memory-model \
  24. -Wnarrowing -Wzero-as-null-pointer-constant \
  25. -Wno-attributes"
  26. autoreconf -i
  27. ./configure --prefix=$dir/run \
  28. --datadir=$dir/run/share/games \
  29. --bindir=$dir/run/bin \
  30. --mandir=$dir/run/share/man
  31. cd po
  32. make -j5 update-gmo 2>../build/make1.log
  33. cd ..
  34. make -j5 2>build/make2.log